aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/skyblock/profile.ts2
-rw-r--r--src/cleaners/skyblock/profiles.ts2
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<O extends ApiOptions>(
const promises: Promise<CleanMember | null>[] = []
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
})
}