mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: scroll to top & view in timeline (#20274)
* feat: scroll to top & view in timeline * use EventStream * refactor: event invocation and listerner * fix: correct parent routing
This commit is contained in:
parent
6becf409da
commit
d15f67da5d
8 changed files with 114 additions and 25 deletions
|
|
@ -19,9 +19,13 @@ class IsarLogRepository extends IsarDatabaseRepository {
|
|||
|
||||
Future<bool> insert(LogMessage log) async {
|
||||
final logEntity = LoggerMessage.fromDto(log);
|
||||
await transaction(() async {
|
||||
await _db.loggerMessages.put(logEntity);
|
||||
});
|
||||
|
||||
try {
|
||||
await transaction(() => _db.loggerMessages.put(logEntity));
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue