diff options
author | mat <github@matdoes.dev> | 2021-05-09 20:08:37 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-05-09 20:08:37 -0500 |
commit | 677be65237f922ec2ea0b82afcaad81a6e76e839 (patch) | |
tree | 79ebb60aafc04d22ccc2aff036f79c0d9b627119 /src/constants.ts | |
parent | 58807d12eefe264e817d8dc4b7075dbb25e4c2d2 (diff) | |
download | skyblock-api-677be65237f922ec2ea0b82afcaad81a6e76e839.tar.gz skyblock-api-677be65237f922ec2ea0b82afcaad81a6e76e839.tar.bz2 skyblock-api-677be65237f922ec2ea0b82afcaad81a6e76e839.zip |
Revert "temp debug stuff"
This reverts commit 58807d12eefe264e817d8dc4b7075dbb25e4c2d2.
Diffstat (limited to 'src/constants.ts')
-rw-r--r-- | src/constants.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/constants.ts b/src/constants.ts index 6c5c1c5..52c104c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -47,8 +47,7 @@ async function fetchGithubApi(method: string, route: string, headers?: any, json }, headers), } ) - } catch (err) { - console.log('bruh, errored', err) + } catch { // if there's an error, wait a second and try again await new Promise((resolve) => setTimeout(resolve, 1000)) return await fetchGithubApi(method, route, headers, json) @@ -87,7 +86,6 @@ function fetchFile(path: string): Promise<GithubFile> { }, ) const data = await r.json() - console.log('ok github api returned') const file = { path: data.path, |