aboutsummaryrefslogtreecommitdiff
path: root/build/hypixel.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-27 21:10:51 -0500
committermat <github@matdoes.dev>2021-05-27 21:10:51 -0500
commit65d21ebe1ead9faa2e1dc6ccad0d24e990632627 (patch)
tree1f2811547398f23353655792eaf722ccd225a9b5 /build/hypixel.js
parentf2f18c27d2e849fdc3b2a6766dc6ab4005cde7df (diff)
downloadskyblock-api-65d21ebe1ead9faa2e1dc6ccad0d24e990632627.tar.gz
skyblock-api-65d21ebe1ead9faa2e1dc6ccad0d24e990632627.tar.bz2
skyblock-api-65d21ebe1ead9faa2e1dc6ccad0d24e990632627.zip
fix some bugs with it loading forever
Diffstat (limited to 'build/hypixel.js')
-rw-r--r--build/hypixel.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/hypixel.js b/build/hypixel.js
index 8e58ffc..b00774d 100644
--- a/build/hypixel.js
+++ b/build/hypixel.js
@@ -101,8 +101,9 @@ async function fetchUser({ user, uuid, username }, included = ['player'], custom
}
}
let websiteAccount = undefined;
- if (websiteAccountPromise)
+ if (websiteAccountPromise) {
websiteAccount = await websiteAccountPromise;
+ }
return {
player: playerData !== null && playerData !== void 0 ? playerData : null,
profiles: profilesData !== null && profilesData !== void 0 ? profilesData : basicProfilesData,