mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix format
This commit is contained in:
parent
a1fd3ef54a
commit
b15056deb9
1 changed files with 11 additions and 12 deletions
|
|
@ -99,18 +99,17 @@ class DriftTrashedLocalAssetRepository extends DriftDatabaseRepository {
|
|||
if (trashUpdates.isEmpty) {
|
||||
return;
|
||||
}
|
||||
final companions = trashUpdates
|
||||
.map(
|
||||
(a) => TrashedLocalAssetEntityCompanion.insert(
|
||||
id: a.id,
|
||||
albumId: a.albumId,
|
||||
name: a.name,
|
||||
type: a.type,
|
||||
checksum: a.checksum == null ? const Value.absent() : Value(a.checksum),
|
||||
size: a.size == null ? const Value.absent() : Value(a.size),
|
||||
createdAt: Value(a.createdAt),
|
||||
),
|
||||
);
|
||||
final companions = trashUpdates.map(
|
||||
(a) => TrashedLocalAssetEntityCompanion.insert(
|
||||
id: a.id,
|
||||
albumId: a.albumId,
|
||||
name: a.name,
|
||||
type: a.type,
|
||||
checksum: a.checksum == null ? const Value.absent() : Value(a.checksum),
|
||||
size: a.size == null ? const Value.absent() : Value(a.size),
|
||||
createdAt: Value(a.createdAt),
|
||||
),
|
||||
);
|
||||
|
||||
for (final slice in companions.slices(200)) {
|
||||
await _db.batch((b) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue