refactor code

rollback changes in BackgroundServicePlugin
This commit is contained in:
Peter Ombodi 2025-08-05 17:58:02 +03:00
parent 558e1e7654
commit a89a35beed
4 changed files with 7 additions and 48 deletions

View file

@ -66,7 +66,7 @@ class DriftLocalAssetRepository extends DriftDatabaseRepository {
return _db.managers.localAssetEntity.filter((e) => e.checksum.isNull().not()).count();
}
Future<List<LocalAsset>> getAssetsByChecksums(Iterable<String> checksums) {
Future<List<LocalAsset>> getByChecksums(Iterable<String> checksums) {
if (checksums.isEmpty) return Future.value([]);
final query = _db.localAssetEntity.select()..where((lae) => lae.checksum.isIn(checksums));
return query.map((row) => row.toDto()).get();