From a89bb15ea87d3bf4221ab9bcb782494cce01b4d4 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 30 Mar 2024 16:36:52 -0700 Subject: [PATCH] chore: scrobbling --- api/music.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/api/music.js b/api/music.js index 4fccd554..bd28f2d3 100644 --- a/api/music.js +++ b/api/music.js @@ -40,15 +40,8 @@ export default async (request) => { const windowData = await scrobbles.get('window', { type: 'json'}) scrobbleData.push(...windowData['data']) } - const artists = getStore('artists') - const artistData = await artists.list() - console.log(artistData) - - return new Response(JSON.stringify({ data: { - scrobbles: scrobbleData, - artists: artistData, - } }), + return new Response(JSON.stringify({ data: scrobbleData }), { headers: { "Content-Type": "application/json" } } ) }