aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-27 17:40:32 -0500
committermat <github@matdoes.dev>2021-05-27 17:40:32 -0500
commit32cd759204c2de2f9b8b81fe001e20910db6fe9d (patch)
tree92c1328de75e33a308d95a70ada6ddd5186fad7f
parent92194d094fb55f93254706bbabaf3ece15952d98 (diff)
downloadskyblock-api-32cd759204c2de2f9b8b81fe001e20910db6fe9d.tar.gz
skyblock-api-32cd759204c2de2f9b8b81fe001e20910db6fe9d.tar.bz2
skyblock-api-32cd759204c2de2f9b8b81fe001e20910db6fe9d.zip
disable "fast" mode for leaderboards
-rw-r--r--build/database.js2
-rw-r--r--src/database.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/database.js b/build/database.js
index c405438..d228057 100644
--- a/build/database.js
+++ b/build/database.js
@@ -556,7 +556,7 @@ if (!globalThis.isTest) {
// when it connects, cache the leaderboards and remove bad members
removeBadMemberLeaderboardAttributes();
// cache leaderboards on startup so its faster later on
- fetchAllLeaderboards(true);
+ fetchAllLeaderboards(false);
// cache leaderboard players again every 4 hours
setInterval(fetchAllLeaderboards, 4 * 60 * 60 * 1000);
});
diff --git a/src/database.ts b/src/database.ts
index c461277..5801f58 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -688,7 +688,7 @@ if (!globalThis.isTest) {
// when it connects, cache the leaderboards and remove bad members
removeBadMemberLeaderboardAttributes()
// cache leaderboards on startup so its faster later on
- fetchAllLeaderboards(true)
+ fetchAllLeaderboards(false)
// cache leaderboard players again every 4 hours
setInterval(fetchAllLeaderboards, 4 * 60 * 60 * 1000)
})