mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: playback style migration (#26718)
This commit is contained in:
@@ -417,7 +417,8 @@ Future<void> _populateLocalAssetPlaybackStyle(Drift db) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final trashedAssetMap = await nativeApi.getTrashedAssets();
|
final trashedAssetMap = await nativeApi.getTrashedAssets();
|
||||||
for (final assets in trashedAssetMap.values) {
|
for (final entry in trashedAssetMap.cast<String, List<Object?>>().entries) {
|
||||||
|
final assets = entry.value.cast<PlatformAsset>();
|
||||||
await db.batch((batch) {
|
await db.batch((batch) {
|
||||||
for (final asset in assets) {
|
for (final asset in assets) {
|
||||||
batch.update(
|
batch.update(
|
||||||
|
|||||||
Reference in New Issue
Block a user