fix: lint
This commit is contained in:
@@ -330,7 +330,9 @@ class DriftLocalAlbumRepository extends DriftDatabaseRepository {
|
|||||||
for (final assetToUnLink in assetsToUnLink) {
|
for (final assetToUnLink in assetsToUnLink) {
|
||||||
batch.deleteWhere(
|
batch.deleteWhere(
|
||||||
_db.localAlbumAssetEntity,
|
_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 {
|
try {
|
||||||
await _db.batch((batch) {
|
await _db.batch((batch) {
|
||||||
for (final asset in data) {
|
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) {
|
} catch (error, stack) {
|
||||||
@@ -212,7 +215,10 @@ class SyncStreamRepository extends DriftDatabaseRepository {
|
|||||||
try {
|
try {
|
||||||
await _db.batch((batch) {
|
await _db.batch((batch) {
|
||||||
for (final album in data) {
|
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) {
|
} catch (error, stack) {
|
||||||
@@ -383,7 +389,10 @@ class SyncStreamRepository extends DriftDatabaseRepository {
|
|||||||
try {
|
try {
|
||||||
await _db.batch((batch) {
|
await _db.batch((batch) {
|
||||||
for (final memory in data) {
|
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) {
|
} catch (error, stack) {
|
||||||
|
|||||||
Reference in New Issue
Block a user