From 776a3ab5f6d717d88691044732d2a9d00f1ca772 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 29 May 2021 22:56:21 -0500 Subject: only cache raw leaderboards --- src/database.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/database.ts b/src/database.ts index 01dec3c..2acfee5 100644 --- a/src/database.ts +++ b/src/database.ts @@ -670,6 +670,7 @@ async function fetchAllLeaderboards(fast?: boolean): Promise { for (const leaderboard of shuffle(leaderboards)) await fetchMemberLeaderboardRaw(leaderboard) finishedCachingRawLeaderboards = true + return // shuffle so if the application is restarting many times itll still be useful if (debug) console.debug('Caching leaderboards!') -- cgit