diff options
author | mat <github@matdoes.dev> | 2021-05-24 15:23:06 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-05-24 15:23:06 -0500 |
commit | 8871e5775bf8361c3acb99f306ee34dbdced79d8 (patch) | |
tree | 2f68b046e0a94479cd70ab09919273613baf96b3 /build | |
parent | 2ba6657d66d618ecc3ae8c7705de31fd8315599c (diff) | |
download | skyblock-api-8871e5775bf8361c3acb99f306ee34dbdced79d8.tar.gz skyblock-api-8871e5775bf8361c3acb99f306ee34dbdced79d8.tar.bz2 skyblock-api-8871e5775bf8361c3acb99f306ee34dbdced79d8.zip |
add temporary debug thing
Diffstat (limited to 'build')
-rw-r--r-- | build/hypixel.js | 2 | ||||
-rw-r--r-- | build/hypixelCached.js | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/build/hypixel.js b/build/hypixel.js index d77e1ae..ea61e4e 100644 --- a/build/hypixel.js +++ b/build/hypixel.js @@ -83,7 +83,7 @@ async function fetchUser({ user, uuid, username }, included = ['player']) { if (!includeProfiles) basicProfilesData = playerData === null || playerData === void 0 ? void 0 : playerData.profiles; if (playerData) - playerData.profiles = undefined; + delete playerData.profiles; } if (includeProfiles) { profilesData = await cached.fetchSkyblockProfiles(uuid); diff --git a/build/hypixelCached.js b/build/hypixelCached.js index c5a027c..50ffc3d 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -340,3 +340,9 @@ async function fetchProfileName(user, profile) { return profileName; } exports.fetchProfileName = fetchProfileName; +setInterval(() => { + const keys = exports.basicPlayerCache.keys(); + if (keys) + console.log(exports.basicPlayerCache.get(keys[keys.length - 1])); + console.log(exports.basicPlayerCache.getStats()); +}, 60 * 1000); |