diff options
-rw-r--r-- | src/cleaners/player.ts | 2 | ||||
-rw-r--r-- | src/cleaners/socialmedia.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cleaners/player.ts b/src/cleaners/player.ts index f4cbb18..d23fe29 100644 --- a/src/cleaners/player.ts +++ b/src/cleaners/player.ts @@ -14,6 +14,7 @@ export interface CleanPlayer extends CleanBasicPlayer { rank: CleanRank socials: CleanSocialMedia profiles?: CleanBasicProfile[] + first_join: number } export async function cleanPlayerResponse(data: HypixelPlayer): Promise<CleanPlayer> { @@ -23,6 +24,7 @@ export async function cleanPlayerResponse(data: HypixelPlayer): Promise<CleanPla username: data.displayname, rank: cleanRank(data), socials: cleanSocialMedia(data), + first_join: data.firstLogin / 1000, profiles: cleanPlayerSkyblockProfiles(data.stats?.SkyBlock?.profiles) } } diff --git a/src/cleaners/socialmedia.ts b/src/cleaners/socialmedia.ts index c7ab7ef..a4ece58 100644 --- a/src/cleaners/socialmedia.ts +++ b/src/cleaners/socialmedia.ts @@ -1,5 +1,3 @@ -import { HypixelPlayerSocialMedia } from "../hypixelApi"; - export interface CleanSocialMedia { discord: string | null forums: string | null |