aboutsummaryrefslogtreecommitdiff
path: root/build/mojang.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-03 15:05:28 -0500
committermat <github@matdoes.dev>2021-06-03 15:05:28 -0500
commitb69726c8a1d59a1f1bcb891fb943f7252b31044c (patch)
treebe6802b1f4f15d30806f2eb9b604beba0aa4e4c9 /build/mojang.js
parent2eb6d7658ac0afa45fd8258a68c7640e4c9e372e (diff)
downloadskyblock-api-b69726c8a1d59a1f1bcb891fb943f7252b31044c.tar.gz
skyblock-api-b69726c8a1d59a1f1bcb891fb943f7252b31044c.tar.bz2
skyblock-api-b69726c8a1d59a1f1bcb891fb943f7252b31044c.zip
return null if fetchMemberProfile user uuid is null
Diffstat (limited to 'build/mojang.js')
-rw-r--r--build/mojang.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/mojang.js b/build/mojang.js
index 3ad8d5e..1c301da 100644
--- a/build/mojang.js
+++ b/build/mojang.js
@@ -61,9 +61,8 @@ async function profileFromUsername(username) {
}
catch { }
if (!(data === null || data === void 0 ? void 0 : data.id)) {
- return { uuid: null, username: null };
- // console.log('mojang api failed, trying ashcon as backup')
- // return await profileFromUsernameAlternative(username)
+ // return { uuid: null, username: null }
+ return await profileFromUsernameAlternative(username);
}
return {
uuid: data.id,