diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-14 20:27:42 -0500 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-14 20:27:42 -0500 |
commit | 52907cf2056cd434dad7270475fc9e4a532c04fa (patch) | |
tree | ed4f185f5d9c36161c3b759c8616a2c7818c58dc /src/hypixelApi.ts | |
parent | 0e5887326f1ba1f8005ca0bd217c5b332a1fb6cf (diff) | |
download | skyblock-api-52907cf2056cd434dad7270475fc9e4a532c04fa.tar.gz skyblock-api-52907cf2056cd434dad7270475fc9e4a532c04fa.tar.bz2 skyblock-api-52907cf2056cd434dad7270475fc9e4a532c04fa.zip |
Revert "Total leaderboards leaderboard (#5)"
This reverts commit 0e5887326f1ba1f8005ca0bd217c5b332a1fb6cf.
Diffstat (limited to 'src/hypixelApi.ts')
-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 7ee7eca..8541089 100644 --- a/src/hypixelApi.ts +++ b/src/hypixelApi.ts @@ -125,6 +125,7 @@ export interface HypixelPlayer { socialMedia?: HypixelPlayerSocialMedia } + /** Send an HTTP request to the Hypixel API */ export async function sendApiRequest({ path, key, args }): Promise<HypixelResponse> { // Send a raw http request to api.hypixel.net, and return the parsed json @@ -144,7 +145,6 @@ export async function sendApiRequest({ path, key, args }): Promise<HypixelRespon { agent: () => httpsAgent } ) } catch { - console.log('error in fetch :/') // if there's an error, wait a second and try again await new Promise((resolve) => setTimeout(resolve, 1000)) return await sendApiRequest({ path, key, args }) |