From 526a9df1484ca629bcc7719d9f52b54eebccaff9 Mon Sep 17 00:00:00 2001 From: Pierniki Date: Wed, 8 Nov 2023 14:54:27 +0100 Subject: [PATCH] fix: retry status code --- src/lib/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/client.ts b/src/lib/client.ts index 724fde2..c524c38 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -63,7 +63,7 @@ export async function graphqlFetch({ ) const fetchWithRetry = async (repeats: number): Promise => { const result = await throttledFetch() - if (result.status === 423 && repeats > 0) return await fetchWithRetry(repeats - 1) + if (result.status === 429 && repeats > 0) return await fetchWithRetry(repeats - 1) return result }