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/cleaners/player.ts | 4 ++-- src/hypixelCached.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cleaners/player.ts b/src/cleaners/player.ts index fb8af78..6ac1382 100644 --- a/src/cleaners/player.ts +++ b/src/cleaners/player.ts @@ -14,7 +14,7 @@ export interface CleanPlayer extends CleanBasicPlayer { rank: CleanRank socials: CleanSocialMedia profiles?: CleanBasicProfile[] - first_join: number + // first_join?: number } export async function cleanPlayerResponse(data: HypixelPlayer): Promise { @@ -26,7 +26,7 @@ export async function cleanPlayerResponse(data: HypixelPlayer): 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