aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hypixelApi.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts
index 6939ea2..d39b155 100644
--- a/src/hypixelApi.ts
+++ b/src/hypixelApi.ts
@@ -174,7 +174,7 @@ export let sendApiRequest = async function sendApiRequest({ path, key, args }):
if (fetchJsonParsed.cause === 'Invalid API key') {
apiKeys.splice(apiKeys.indexOf(key), 1)
console.log(`${key} is invalid, removing it from the list of keys`)
- return await sendApiRequest({ path, key: null, args })
+ return await sendApiRequest({ path, key: chooseApiKey(), args })
}
if (fetchResponse.headers.get('ratelimit-limit'))