mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 17:01:13 +03:00
fix: lint
This commit is contained in:
@@ -330,7 +330,9 @@ class DriftLocalAlbumRepository extends DriftDatabaseRepository {
|
||||
for (final assetToUnLink in assetsToUnLink) {
|
||||
batch.deleteWhere(
|
||||
_db.localAlbumAssetEntity,
|
||||
(row) => row.assetId.equals(assetToUnLink) & row.albumId.equals(albumId),
|
||||
(row) =>
|
||||
row.assetId.equals(assetToUnLink) &
|
||||
row.albumId.equals(albumId),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -114,7 +114,10 @@ class SyncStreamRepository extends DriftDatabaseRepository {
|
||||
try {
|
||||
await _db.batch((batch) {
|
||||
for (final asset in data) {
|
||||
batch.deleteWhere(_db.remoteAssetEntity, (row) => row.id.equals(asset.assetId));
|
||||
batch.deleteWhere(
|
||||
_db.remoteAssetEntity,
|
||||
(row) => row.id.equals(asset.assetId),
|
||||
);
|
||||
}
|
||||
});
|
||||
} catch (error, stack) {
|
||||
@@ -212,7 +215,10 @@ class SyncStreamRepository extends DriftDatabaseRepository {
|
||||
try {
|
||||
await _db.batch((batch) {
|
||||
for (final album in data) {
|
||||
batch.deleteWhere(_db.remoteAlbumEntity, (row) => row.id.equals(album.albumId));
|
||||
batch.deleteWhere(
|
||||
_db.remoteAlbumEntity,
|
||||
(row) => row.id.equals(album.albumId),
|
||||
);
|
||||
}
|
||||
});
|
||||
} catch (error, stack) {
|
||||
@@ -383,7 +389,10 @@ class SyncStreamRepository extends DriftDatabaseRepository {
|
||||
try {
|
||||
await _db.batch((batch) {
|
||||
for (final memory in data) {
|
||||
batch.deleteWhere(_db.memoryEntity, (row) => row.id.equals(memory.memoryId));
|
||||
batch.deleteWhere(
|
||||
_db.memoryEntity,
|
||||
(row) => row.id.equals(memory.memoryId),
|
||||
);
|
||||
}
|
||||
});
|
||||
} catch (error, stack) {
|
||||
|
||||
Reference in New Issue
Block a user