From 9bd8ab0e8af140be3b3dc5e51a2b0a67ab1b360f Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 29 Mar 2024 14:39:37 -0700 Subject: [PATCH] chore: scrobbling --- api/scrobble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/scrobble.js b/api/scrobble.js index 0fc12fc8..1481c32a 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -112,7 +112,7 @@ export default async (request) => { } const scrobbleData = await scrobbles.get(`${weekStop()}`, { type: 'json'}) const windowData = await scrobbles.get('window', { type: 'json'}) - scrobbleData.setJSON('now-playing', JSON.stringify(scrobbleUpdate)) + scrobbleData.setJSON('now-playing', JSON.stringify(trackScrobbleData)) let scrobbleUpdate = scrobbleData let windowUpdate = windowData; if (scrobbleUpdate) scrobbleUpdate['data'].push(trackScrobbleData)