fix: playback style migration (#26718)

This commit is contained in:
Alex
2026-03-05 12:51:58 -06:00
committed by GitHub
parent 5ab05e57fa
commit 7b0deb1fd3
+2 -1
View File
@@ -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(