aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-03-01 21:32:04 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-03-01 21:32:04 -0600
commit8559c100cede2d58e69f8b87a081945db07a5019 (patch)
treed9c4ff79cc09bf2fba2e20dc1f75911653ab0b85 /build
parentde0957758e1c9b409fb789bb60acc7b9cf6ec140 (diff)
downloadskyblock-api-8559c100cede2d58e69f8b87a081945db07a5019.tar.gz
skyblock-api-8559c100cede2d58e69f8b87a081945db07a5019.tar.bz2
skyblock-api-8559c100cede2d58e69f8b87a081945db07a5019.zip
Update database.js
Diffstat (limited to 'build')
-rw-r--r--build/database.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/database.js b/build/database.js
index c3f2518..11192f0 100644
--- a/build/database.js
+++ b/build/database.js
@@ -291,8 +291,6 @@ async function fetchAllLeaderboards() {
connect().then(() => {
// when it connects, cache the leaderboards and remove bad members
removeBadMemberLeaderboardAttributes();
- // cache leaderboards on startup so its faster later on
- fetchAllLeaderboards();
- // cache leaderboard players again every hour
+ // cache leaderboard players every hour
setInterval(fetchAllLeaderboards, 4 * 60 * 60 * 1000);
});