From f21fe3705ffd93082136df4b5487c0427e32c81f Mon Sep 17 00:00:00 2001 From: Victor Azevedo <34415964+victrme@users.noreply.github.com> Date: Tue, 31 Dec 2024 11:37:22 +0100 Subject: [PATCH] Change supporters API date query format --- src/scripts/features/supporters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/features/supporters.ts b/src/scripts/features/supporters.ts index 3951c28d..320af4cd 100644 --- a/src/scripts/features/supporters.ts +++ b/src/scripts/features/supporters.ts @@ -245,7 +245,7 @@ export async function loadModalData() { try { let response: Response | undefined let supporters: SupportersAPI[] = [] - response = await fetch(`https://kofi.bonjourr.fr/list?date=${monthToGet}/${yearToGet}`) + response = await fetch(`https://kofi.bonjourr.fr/list?date=${yearToGet}-${monthToGet}`) if (!response.ok) { console.error(`HTTP error when fetching supporters list! status: ${response.status}`)