diff options
author | mat <github@matdoes.dev> | 2021-12-28 19:06:05 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-12-28 19:06:05 -0600 |
commit | 20800161a5d70b01a8d9a0345c985c75c5865219 (patch) | |
tree | cc24faabe309e270af3644b2e4c91d065b479179 /src | |
parent | 5c3fbec2ba97c495f2e70695453e7fb88a489d2c (diff) | |
download | skyblock-api-20800161a5d70b01a8d9a0345c985c75c5865219.tar.gz skyblock-api-20800161a5d70b01a8d9a0345c985c75c5865219.tar.bz2 skyblock-api-20800161a5d70b01a8d9a0345c985c75c5865219.zip |
fix for removing invalid api key
Diffstat (limited to 'src')
-rw-r--r-- | src/hypixelApi.ts | 2 |
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')) |