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) {
|
if (trashUpdates.isEmpty) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final companions = trashUpdates
|
final companions = trashUpdates.map(
|
||||||
.map(
|
(a) => TrashedLocalAssetEntityCompanion.insert(
|
||||||
(a) => TrashedLocalAssetEntityCompanion.insert(
|
id: a.id,
|
||||||
id: a.id,
|
albumId: a.albumId,
|
||||||
albumId: a.albumId,
|
name: a.name,
|
||||||
name: a.name,
|
type: a.type,
|
||||||
type: a.type,
|
checksum: a.checksum == null ? const Value.absent() : Value(a.checksum),
|
||||||
checksum: a.checksum == null ? const Value.absent() : Value(a.checksum),
|
size: a.size == null ? const Value.absent() : Value(a.size),
|
||||||
size: a.size == null ? const Value.absent() : Value(a.size),
|
createdAt: Value(a.createdAt),
|
||||||
createdAt: Value(a.createdAt),
|
),
|
||||||
),
|
);
|
||||||
);
|
|
||||||
|
|
||||||
for (final slice in companions.slices(200)) {
|
for (final slice in companions.slices(200)) {
|
||||||
await _db.batch((b) {
|
await _db.batch((b) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue