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')