mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +01:00
Fix unnecessarily opening DB as RW
This commit is contained in:
parent
ab5f1f29ba
commit
2c8434b768
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class ResyncAlbum {
|
|||
}
|
||||
return await AppDb.use((db) async {
|
||||
final transaction =
|
||||
db.transaction(AppDb.fileDbStoreName, idbModeReadWrite);
|
||||
db.transaction(AppDb.fileDbStoreName, idbModeReadOnly);
|
||||
final store = transaction.objectStore(AppDb.fileDbStoreName);
|
||||
final index = store.index(AppDbFileDbEntry.indexName);
|
||||
final newItems = <AlbumItem>[];
|
||||
|
|
Loading…
Reference in a new issue