diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-14 21:26:39 -0500 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-04-14 21:26:39 -0500 |
commit | 1858d515752988b2376d7917efd66dbfd0047ae6 (patch) | |
tree | aa831072d9e2d323ac5d4d3066cb1936c74a7c90 /src/database.ts | |
parent | c31e4fe77467486dc03226ebdad4c0bc67e1d715 (diff) | |
download | skyblock-api-1858d515752988b2376d7917efd66dbfd0047ae6.tar.gz skyblock-api-1858d515752988b2376d7917efd66dbfd0047ae6.tar.bz2 skyblock-api-1858d515752988b2376d7917efd66dbfd0047ae6.zip |
revert change that makes leaderboards update slowly
Diffstat (limited to 'src/database.ts')
-rw-r--r-- | src/database.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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) }) |