Skip to content

Commit

Permalink
Change supporters API date query format
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Dec 31, 2024
1 parent 66d501c commit f21fe37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/features/supporters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit f21fe37

Please sign in to comment.