From 95e3dacbbace93509db4e218a0641e3781498db1 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 29 Mar 2024 11:34:54 -0700 Subject: [PATCH] chore: debug --- api/scrobble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/scrobble.js b/api/scrobble.js index 6e35acd8..ed6f3516 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -11,7 +11,7 @@ export default async (request, context) => { const params = new URL(request['url']).searchParams const id = params.get('id') const data = await request.formData() - const payload = data.get('payload') + const payload = JSON.parse(data.get('payload')) console.log(payload) console.log(payload['Metadata']) const artists = getStore('artists')