aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-02-14 17:52:05 -0600
committermat <github@matdoes.dev>2022-02-14 17:52:05 -0600
commit0c3a4d5e791be8fb9c34d55c13797c9f33871ca4 (patch)
tree78ba19b48ce84f9f58dab48644351c94b864ff11 /src
parent766c8221ceb23d66ed253250fead533ad0cb73bd (diff)
downloadskyblock-api-0c3a4d5e791be8fb9c34d55c13797c9f33871ca4.tar.gz
skyblock-api-0c3a4d5e791be8fb9c34d55c13797c9f33871ca4.tar.bz2
skyblock-api-0c3a4d5e791be8fb9c34d55c13797c9f33871ca4.zip
oop accidentally broke leaderboards
Diffstat (limited to 'src')
-rw-r--r--src/database.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.ts b/src/database.ts
index 6b57bc0..039f013 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -297,7 +297,7 @@ async function fetchMemberLeaderboardRaw(name: string): Promise<memberRawLeaderb
return cachedRawLeaderboards.get(name) as memberRawLeaderboardItem[]
// if it's currently being fetched, check every 100ms until it's in cachedRawLeaderboards
- if (fetchingRawLeaderboardNames.has(name) || !cachedRawLeaderboards.get(name)) {
+ if (fetchingRawLeaderboardNames.has(name) && !cachedRawLeaderboards.get(name)) {
while (true) {
await sleep(100)
if (cachedRawLeaderboards.has(name))