diff options
author | mat <git@matdoes.dev> | 2023-05-19 20:15:32 -0500 |
---|---|---|
committer | mat <git@matdoes.dev> | 2023-05-19 20:15:32 -0500 |
commit | e99e8d2693f046449bd74c8cbdabb9bd88621a87 (patch) | |
tree | dce33d2492c32255a5266d0ac4691ec7c2703c4d | |
parent | 48ef05ffc70587586178c7c764e14b7742d74806 (diff) | |
download | skyblock-api-main.tar.gz skyblock-api-main.tar.bz2 skyblock-api-main.zip |
-rw-r--r-- | src/cleaners/skyblock/profile.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/profile.ts b/src/cleaners/skyblock/profile.ts index 47e073b..0297081 100644 --- a/src/cleaners/skyblock/profile.ts +++ b/src/cleaners/skyblock/profile.ts @@ -42,7 +42,7 @@ export async function cleanSkyblockProfileResponseLighter(data: typedHypixelApi. const cleanedMembers: CleanBasicMember[] = (await Promise.all(promises)).filter(m => m) as CleanBasicMember[] return { - uuid: data.profile_id, + uuid: data.profile_id.replace(/-/g, ''), name: 'cute_name' in data ? data.cute_name : undefined, members: cleanedMembers, mode: cleanGameMode(data) @@ -114,7 +114,7 @@ export async function cleanSkyblockProfileResponse<O extends ApiOptions>( // return more detailed info const cleanFullProfile: CleanFullProfile = { - uuid: data.profile_id, + uuid: data.profile_id.replace(/-/g, ''), name: 'cute_name' in data ? data.cute_name : undefined, members: cleanedMembers, bank: cleanBank(data), |