mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
rework fetching trashed assets data on native side
optimize handling trashed assets in local sync service refactor code
This commit is contained in:
parent
cd43564d46
commit
519e428b99
8 changed files with 133 additions and 97 deletions
|
|
@ -59,7 +59,7 @@ class DriftTrashedLocalAssetRepository extends DriftDatabaseRepository {
|
|||
/// Applies resulted snapshot of trashed assets:
|
||||
/// - upserts incoming rows
|
||||
/// - deletes rows that are not present in the snapshot
|
||||
Future<void> applyTrashSnapshot(Iterable<TrashedAsset> trashedAssets) async {
|
||||
Future<void> applySnapshot(Iterable<TrashedAsset> trashedAssets) async {
|
||||
if (trashedAssets.isEmpty) {
|
||||
await _db.delete(_db.trashedLocalAssetEntity).go();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue