From 4dd56374dcf36094d49b95daca92f2e446883a3c Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt <coryd@hey.com> Date: Wed, 3 Apr 2024 19:46:57 -0700 Subject: [PATCH] chore: debug --- plugins/fetch-scrobbles/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/fetch-scrobbles/index.js b/plugins/fetch-scrobbles/index.js index 847dc961..9008deea 100644 --- a/plugins/fetch-scrobbles/index.js +++ b/plugins/fetch-scrobbles/index.js @@ -13,8 +13,8 @@ export const onPreBuild = async ({ constants }) => { const artistsMap = await artists.get('artists-map', { type: 'json' }) const albumsMap = await albums.get('albums-map', { type: 'json' }) const nowPlaying = await scrobbles.get('now-playing', { type: 'json'}) - fs.writeFileSync('/src/_data/json/scrobbles-window.json', windowData) - fs.writeFileSync('/src/_data/json/artists-map.json', artistsMap) - fs.writeFileSync('/src/_data/json/albums-map.json', albumsMap) - fs.writeFileSync('/src/_data/json/now-playing.json', nowPlaying) + fs.writeFileSync('/src/_data/json/scrobbles-window.json', JSON.stringify(windowData)) + fs.writeFileSync('/src/_data/json/artists-map.json', JSON.stringify(artistsMap)) + fs.writeFileSync('/src/_data/json/albums-map.json', JSON.stringify(artistsMap)) + fs.writeFileSync('/src/_data/json/now-playing.json', JSON.stringify(artistsMap)) } \ No newline at end of file