fix: implement missing getAll in MusicDatabase to prevent data loss during sync
This commit is contained in:
parent
bd6ab9d6fd
commit
f56afd840c
1 changed files with 4 additions and 0 deletions
4
js/db.js
4
js/db.js
|
|
@ -77,6 +77,10 @@ export class MusicDatabase {
|
|||
});
|
||||
}
|
||||
|
||||
async getAll(storeName) {
|
||||
return await this.performTransaction(storeName, 'readonly', (store) => store.getAll());
|
||||
}
|
||||
|
||||
// History API
|
||||
async addToHistory(track) {
|
||||
const storeName = 'history_tracks';
|
||||
|
|
|
|||
Loading…
Reference in a new issue