aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-05-19 20:15:32 -0500
committermat <git@matdoes.dev>2023-05-19 20:15:32 -0500
commite99e8d2693f046449bd74c8cbdabb9bd88621a87 (patch)
treedce33d2492c32255a5266d0ac4691ec7c2703c4d
parent48ef05ffc70587586178c7c764e14b7742d74806 (diff)
downloadskyblock-api-e99e8d2693f046449bd74c8cbdabb9bd88621a87.tar.gz
skyblock-api-e99e8d2693f046449bd74c8cbdabb9bd88621a87.tar.bz2
skyblock-api-e99e8d2693f046449bd74c8cbdabb9bd88621a87.zip
undash in a couple more placesHEADmain
-rw-r--r--src/cleaners/skyblock/profile.ts4
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),