mirror of
https://github.com/immich-app/immich.git
synced 2024-12-24 10:37:28 +02:00
cae37657e9
* fix(mobile): allow syncing duplicate local IDs * enable to run isar unit tests on CI * serialize sync operations, add pull to refresh on timeline --------- Co-authored-by: Fynn Petersen-Frey <zoodyy@users.noreply.github.com>
15 lines
488 B
Dart
15 lines
488 B
Dart
import 'package:immich_mobile/shared/models/album.dart';
|
|
import 'package:immich_mobile/shared/models/asset.dart';
|
|
import 'package:immich_mobile/shared/models/exif_info.dart';
|
|
import 'package:immich_mobile/shared/models/store.dart';
|
|
import 'package:isar/isar.dart';
|
|
|
|
Future<void> clearAssetsAndAlbums(Isar db) async {
|
|
await Store.delete(StoreKey.assetETag);
|
|
await db.writeTxn(() async {
|
|
await db.assets.clear();
|
|
await db.exifInfos.clear();
|
|
await db.albums.clear();
|
|
});
|
|
}
|