fix fetch stats

pull/2789/head
Jérémy Rialland 2023-08-14 15:09:15 +02:00 committed by Jérémy Rialland
parent b0845c0f86
commit 1aafada713
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ const fetchApi = async function (query, page = 1) {
if (!response.ok) {
if (response.status === 429) {
return new Promise((resolve) =>
setTimeout(() => resolve(fetchApi(query(page))), 100)
setTimeout(() => resolve(fetchApi(query, page)), 100)
)
}
const text = await response.text()