From 1858d515752988b2376d7917efd66dbfd0047ae6 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 14 Apr 2021 21:26:39 -0500 Subject: revert change that makes leaderboards update slowly --- src/database.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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) }) -- cgit