From 48ef05ffc70587586178c7c764e14b7742d74806 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 19 May 2023 20:13:14 -0500 Subject: undash profile uuid --- src/cleaners/skyblock/profile.ts | 2 +- src/cleaners/skyblock/profiles.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cleaners/skyblock/profile.ts b/src/cleaners/skyblock/profile.ts index 725b8b9..47e073b 100644 --- a/src/cleaners/skyblock/profile.ts +++ b/src/cleaners/skyblock/profile.ts @@ -60,7 +60,7 @@ export async function cleanSkyblockProfileResponse( const promises: Promise[] = [] if (!data) return null - const profileId = data.profile_id + const profileId = data.profile_id.replace(/-/g, '') for (const memberUUID in data.members) { const memberRaw = data.members[memberUUID] diff --git a/src/cleaners/skyblock/profiles.ts b/src/cleaners/skyblock/profiles.ts index da40ee3..fbf6dc7 100644 --- a/src/cleaners/skyblock/profiles.ts +++ b/src/cleaners/skyblock/profiles.ts @@ -13,7 +13,7 @@ export function cleanPlayerSkyblockProfiles(rawProfiles: HypixelPlayerStatsSkyBl let profiles: CleanBasicProfile[] = [] for (const profile of Object.values(rawProfiles ?? {})) { profiles.push({ - uuid: profile.profile_id, + uuid: profile.profile_id.replace(/-/g, ''), name: profile.cute_name }) } -- cgit