diff options
-rw-r--r-- | build/database.js | 2 | ||||
-rw-r--r-- | src/database.ts | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/build/database.js b/build/database.js index 9557668..aa8765c 100644 --- a/build/database.js +++ b/build/database.js @@ -505,6 +505,8 @@ async function fetchAllLeaderboards(fast) { if (!fast) // wait 2 seconds so it doesnt use as much ram await util_1.sleep(2 * 1000); + else + await util_1.sleep(500); await fetchMemberLeaderboard(leaderboard); } if (_1.debug) diff --git a/src/database.ts b/src/database.ts index 4c6dadf..35c04e8 100644 --- a/src/database.ts +++ b/src/database.ts @@ -612,6 +612,8 @@ async function fetchAllLeaderboards(fast?: boolean): Promise<void> { if (!fast) // wait 2 seconds so it doesnt use as much ram await sleep(2 * 1000) + else + await sleep(500) await fetchMemberLeaderboard(leaderboard) } |