aboutsummaryrefslogtreecommitdiff
path: root/build/database.js
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-04-14 21:26:39 -0500
committermat <27899617+mat-1@users.noreply.github.com>2021-04-14 21:26:39 -0500
commit1858d515752988b2376d7917efd66dbfd0047ae6 (patch)
treeaa831072d9e2d323ac5d4d3066cb1936c74a7c90 /build/database.js
parentc31e4fe77467486dc03226ebdad4c0bc67e1d715 (diff)
downloadskyblock-api-1858d515752988b2376d7917efd66dbfd0047ae6.tar.gz
skyblock-api-1858d515752988b2376d7917efd66dbfd0047ae6.tar.bz2
skyblock-api-1858d515752988b2376d7917efd66dbfd0047ae6.zip
revert change that makes leaderboards update slowly
Diffstat (limited to 'build/database.js')
-rw-r--r--build/database.js3
1 files changed, 1 insertions, 2 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);
});