diff options
-rw-r--r-- | build/database.js | 3 | ||||
-rw-r--r-- | src/database.ts | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/build/database.js b/build/database.js index b76b85c..8a29686 100644 --- a/build/database.js +++ b/build/database.js @@ -362,8 +362,7 @@ connect().then(() => { // when it connects, cache the leaderboards and remove bad members removeBadMemberLeaderboardAttributes(); // cache leaderboards on startup so its faster later on - // fetchAllLeaderboards(true) - fetchAllLeaderboards(false); + fetchAllLeaderboards(true); // cache leaderboard players again every 4 hours setInterval(fetchAllLeaderboards, 4 * 60 * 60 * 1000); }); diff --git a/src/database.ts b/src/database.ts index afdaa0c..5633ce4 100644 --- a/src/database.ts +++ b/src/database.ts @@ -429,8 +429,7 @@ connect().then(() => { // when it connects, cache the leaderboards and remove bad members removeBadMemberLeaderboardAttributes() // cache leaderboards on startup so its faster later on - // fetchAllLeaderboards(true) - fetchAllLeaderboards(false) + fetchAllLeaderboards(true) // cache leaderboard players again every 4 hours setInterval(fetchAllLeaderboards, 4 * 60 * 60 * 1000) }) |