aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-05-19 20:13:14 -0500
committermat <git@matdoes.dev>2023-05-19 20:13:14 -0500
commit48ef05ffc70587586178c7c764e14b7742d74806 (patch)
tree8af50b65d731aa1305d9f9cee7e79fb1fb04e5e7
parent58fc378174faf11391885281759caa39d9b324cc (diff)
downloadskyblock-api-48ef05ffc70587586178c7c764e14b7742d74806.tar.gz
skyblock-api-48ef05ffc70587586178c7c764e14b7742d74806.tar.bz2
skyblock-api-48ef05ffc70587586178c7c764e14b7742d74806.zip
undash profile uuid
-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
})
}