add option to use sveltekit's fetch for seeding db

This commit is contained in:
2026-02-05 22:31:37 -08:00
parent 03ce24d707
commit 2f0426ce2e
2 changed files with 5 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ export const load: PageLoad = async ({ url, fetch, depends }) => {
}
// Browser path: seed then query local DB for songs by MAL ids
await ensureSeeded();
await ensureSeeded({ fetch });
const malIds = malResponse.data.map((e) => e.node.id);
const songRows = await getSongsForMalAnimeIds(db, malIds);