From f56afd840cae371f7ba0bda292bddf2fe1e39d14 Mon Sep 17 00:00:00 2001 From: Julien Maille Date: Mon, 19 Jan 2026 22:56:44 +0100 Subject: [PATCH] fix: implement missing getAll in MusicDatabase to prevent data loss during sync --- js/db.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/db.js b/js/db.js index ca2ba4f..0041305 100644 --- a/js/db.js +++ b/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';