diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-15 13:01:49 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-15 13:01:49 -0600 |
commit | 839b43b1cfc0735e002211326246c058e5ec759b (patch) | |
tree | 8c63cb8151c3aea7c540159dc5cab18259755510 /build/hypixelCached.js | |
parent | 2c1fa08673548af87a860b69aa602bc509c56b1c (diff) | |
download | skyblock-api-839b43b1cfc0735e002211326246c058e5ec759b.tar.gz skyblock-api-839b43b1cfc0735e002211326246c058e5ec759b.tar.bz2 skyblock-api-839b43b1cfc0735e002211326246c058e5ec759b.zip |
remove debug logs
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r-- | build/hypixelCached.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index c357763..660bab4 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -100,7 +100,6 @@ exports.usernameFromUser = usernameFromUser; async function fetchPlayer(user) { const playerUuid = await uuidFromUser(user); if (playerCache.has(playerUuid)) { - console.log('cache hit! fetchPlayer', playerUuid); return playerCache.get(playerUuid); } const cleanPlayer = await hypixel.sendCleanApiRequest({ @@ -115,7 +114,6 @@ async function fetchPlayer(user) { exports.fetchPlayer = fetchPlayer; async function fetchSkyblockProfiles(playerUuid) { if (profilesCache.has(playerUuid)) { - console.log('cache hit! fetchSkyblockProfiles', playerUuid); return profilesCache.get(playerUuid); } const profiles = await hypixel.sendCleanApiRequest({ @@ -154,7 +152,6 @@ exports.fetchSkyblockProfiles = fetchSkyblockProfiles; async function fetchBasicProfiles(user) { const playerUuid = await uuidFromUser(user); if (basicProfilesCache.has(playerUuid)) { - console.log('cache hit! fetchBasicProfiles'); return basicProfilesCache.get(playerUuid); } const player = await fetchPlayer(playerUuid); @@ -193,7 +190,6 @@ async function fetchProfile(user, profile) { const playerUuid = await uuidFromUser(user); const profileUuid = await fetchProfileUuid(playerUuid, profile); if (profileCache.has(profileUuid)) { - console.log('cache hit! fetchProfile'); // we have the profile cached, return it :) return profileCache.get(profileUuid); } @@ -219,7 +215,6 @@ async function fetchProfileName(user, profile) { const playerUuid = await uuidFromUser(user); if (profileNameCache.has(`${playerUuid}.${profileUuid}`)) { // Return the profile name if it's cached - console.log('cache hit! fetchProfileName'); return profileNameCache.get(`${playerUuid}.${profileUuid}`); } const basicProfiles = await fetchBasicProfiles(playerUuid); |