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 /src | |
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 'src')
-rw-r--r-- | src/hypixel.ts | 2 | ||||
-rw-r--r-- | src/hypixelCached.ts | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts index 464f3dd..4d3e692 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -100,7 +100,7 @@ export async function fetchUser({ user, uuid, username }: UserAny, included: Inc if (!includeProfiles) basicProfilesData = playerData?.profiles if (playerData) - playerData.profiles = undefined + delete playerData.profiles } if (includeProfiles) { profilesData = await cached.fetchSkyblockProfiles(uuid) diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index f7b96ef..3896703 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -365,4 +365,11 @@ export async function fetchProfileName(user: string, profile: string): Promise<s profileNameCache.set(`${playerUuid}.${profileUuid}`, profileName) return profileName -}
\ No newline at end of file +} + +setInterval(() => { + const keys = basicPlayerCache.keys() + if (keys) + console.log(basicPlayerCache.get(keys[keys.length - 1])) + console.log(basicPlayerCache.getStats()) +}, 60 * 1000)
\ No newline at end of file |