fix(mobile): exif not updated on sync (#17633)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-04-16 01:00:58 +05:30 committed by GitHub
parent 5bceefce75
commit 78f8e23834
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View file

@ -274,6 +274,15 @@ void main() {
List.filled(assets.length, null),
);
await s.upsertAssetsWithExif(assets);
verify(
() => exifInfoRepository.updateAll(
any(
that: containsAll(
assets.map((a) => a.exifInfo!.copyWith(assetId: a.id)),
),
),
),
);
expect(assets.map((a) => a.exifInfo?.assetId), assets.map((a) => a.id));
});
});