From bb470f86e0f67e60778bad9832c2747f633f023e Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 29 Mar 2024 14:21:51 -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 51c32314..0fc12fc8 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -8,7 +8,7 @@ const sanitizeMediaString = (string) => { const weekStop = () => { const currentDate = DateTime.now() - let nextSunday = currentDate.plus({ 7: (7 - currentDate.weekday) % 7 }) + let nextSunday = currentDate.plus({ days: (7 - currentDate.weekday) % 7 }) nextSunday = nextSunday.set({ hour: 0, minute: 0, second: 0, millisecond: 0 }) return nextSunday.toMillis() }