From 3d76d8ae862f2cd43ffa85c39b7d9ef26da2c873 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 3 Apr 2024 20:00:28 -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 a7793090..5eb9f5a3 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', 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)) + 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(albumsMap)) + fs.writeFileSync('src/_data/json/now-playing.json', JSON.stringify(nowPlaying)) } \ No newline at end of file