diff options
author | mat <github@matdoes.dev> | 2021-06-01 02:38:36 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-06-01 02:38:36 -0500 |
commit | ddf7ff4ab6331f70e313de29eafdcc03d67074ad (patch) | |
tree | d28b5831445182440c7367368e58eb78fe1b78b2 /build | |
parent | 18ea9e67c963690c4f62b7376ce289cc78bf2daa (diff) | |
download | skyblock-api-ddf7ff4ab6331f70e313de29eafdcc03d67074ad.tar.gz skyblock-api-ddf7ff4ab6331f70e313de29eafdcc03d67074ad.tar.bz2 skyblock-api-ddf7ff4ab6331f70e313de29eafdcc03d67074ad.zip |
temporarily disable leaderboard cache
i am literally going insane
Diffstat (limited to 'build')
-rw-r--r-- | build/database.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/database.js b/build/database.js index 7c7d192..66bf90f 100644 --- a/build/database.js +++ b/build/database.js @@ -229,7 +229,7 @@ async function fetchMemberLeaderboardRaw(name) { }; }); fetchingRawLeaderboardNames.delete(name); - exports.cachedRawLeaderboards.set(name, leaderboardRaw); + // cachedRawLeaderboards.set(name, leaderboardRaw) return leaderboardRaw; } async function fetchProfileLeaderboardRaw(name) { @@ -262,7 +262,7 @@ async function fetchProfileLeaderboardRaw(name) { }; }); fetchingRawLeaderboardNames.delete(name); - exports.cachedRawLeaderboards.set(name, leaderboardRaw); + // cachedRawLeaderboards.set(name, leaderboardRaw) return leaderboardRaw; } /** Fetch a leaderboard that ranks members, as opposed to profiles */ @@ -448,7 +448,7 @@ async function updateDatabaseMember(member, profile) { }]) .sort((a, b) => leaderboardReverse ? a.value - b.value : b.value - a.value) .slice(0, 100); - exports.cachedRawLeaderboards.set(attributeName, newRawLeaderboard); + // cachedRawLeaderboards.set(attributeName, newRawLeaderboard) } if (_1.debug) console.debug('added member to leaderboards', member.username, leaderboardAttributes); @@ -496,7 +496,7 @@ async function updateDatabaseProfile(profile) { }]) .sort((a, b) => leaderboardReverse ? a.value - b.value : b.value - a.value) .slice(0, 100); - exports.cachedRawLeaderboards.set(attributeName, newRawLeaderboard); + // cachedRawLeaderboards.set(attributeName, newRawLeaderboard) } if (_1.debug) console.debug('added profile to leaderboards', profile.name, leaderboardAttributes); |