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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -417,7 +417,8 @@ Future<void> _populateLocalAssetPlaybackStyle(Drift db) async {
}
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) {
for (final asset in assets) {
batch.update(