From faec7fb42837ce08ae7068f95ac62934a2a1fa4f Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 29 Mar 2024 12:31:14 -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 1a7e49dd..6ccee46b 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -74,7 +74,7 @@ export default async (request, context) => { console.log(err); return {} }); - genre = genreRes['genres'].sort((a, b) => b.count - a.count)[0]?.["name"] || ""; + const genre = genreRes['genres'].sort((a, b) => b.count - a.count)[0]?.['name'] || ''; const artistData = { mbid, genre,