From ee30474985ca2556f931e4ffd5e3643048bea1c5 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 24 May 2021 18:45:35 -0500 Subject: remove first_join from CleanPlayer we *probably* don't need it --- src/hypixelCached.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/hypixelCached.ts') diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index c14db3e..1f6b7f2 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -247,6 +247,10 @@ async function fetchBasicProfiles(user: string): Promise { if (debug) console.debug('Cache miss: fetchBasicProfiles', user) const player = await fetchPlayer(playerUuid) + if (!player) { + console.log('bruh playerUuid', playerUuid) + return [] + } const profiles = player.profiles basicProfilesCache.set(playerUuid, profiles) -- cgit