From 5405e826ab0d70c5214542d8070124e3409084eb Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 30 Mar 2024 15:46:56 -0700 Subject: [PATCH] chore: scrobbling --- api/music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/music.js b/api/music.js index cc0f59c9..89289f22 100644 --- a/api/music.js +++ b/api/music.js @@ -8,7 +8,7 @@ export default async (request) => { let weeksArr = [] let weeksString - if (weeks.includes(',')) { + if (weeks?.includes(',')) { weeksArr = weeks.split(',') } else { weeksString = weeks