mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor code
remove unused model
This commit is contained in:
parent
4b2b99942c
commit
cdfa7ccbff
5 changed files with 20 additions and 61 deletions
|
|
@ -30,8 +30,8 @@ class DriftTrashedLocalAssetRepository extends DriftDatabaseRepository {
|
|||
});
|
||||
}
|
||||
|
||||
Future<Iterable<TrashedAsset>> getToHash(String albumId) {
|
||||
final query = _db.trashedLocalAssetEntity.select()..where((r) => r.albumId.equals(albumId) & r.checksum.isNull());
|
||||
Future<Iterable<TrashedAsset>> getToHash(Iterable<String> albumIds) {
|
||||
final query = _db.trashedLocalAssetEntity.select()..where((r) => r.albumId.isIn(albumIds) & r.checksum.isNull());
|
||||
return query.map((row) => row.toDto()).get();
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ class DriftTrashedLocalAssetRepository extends DriftDatabaseRepository {
|
|||
});
|
||||
}
|
||||
|
||||
Future<void> insertTrashDelta(Iterable<TrashedAsset> trashUpdates) async {
|
||||
Future<void> saveTrashedAssets(Iterable<TrashedAsset> trashUpdates) async {
|
||||
if (trashUpdates.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue