diff options
author | mat <github@matdoes.dev> | 2021-06-24 17:27:20 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-06-24 17:27:20 -0500 |
commit | 2047be523ce678def4d015a0186dd54cede5ca19 (patch) | |
tree | d17a38c815f72e499c6508394317ea398aa96b9e /build/hypixel.js | |
parent | 0e2ee00b2fce07d00eb10ee6936b6ee3e4d848f5 (diff) | |
download | skyblock-api-2047be523ce678def4d015a0186dd54cede5ca19.tar.gz skyblock-api-2047be523ce678def4d015a0186dd54cede5ca19.tar.bz2 skyblock-api-2047be523ce678def4d015a0186dd54cede5ca19.zip |
actually error like it's supposed to for invalid player profiles
Diffstat (limited to 'build/hypixel.js')
-rw-r--r-- | build/hypixel.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/hypixel.js b/build/hypixel.js index 4e9a2a2..8750170 100644 --- a/build/hypixel.js +++ b/build/hypixel.js @@ -122,6 +122,8 @@ exports.fetchUser = fetchUser; */ async function fetchMemberProfile(user, profile, customization) { const playerUuid = await cached.uuidFromUser(user); + if (!playerUuid) + return; // we don't await the promise immediately so it can load while we do other stuff const websiteAccountPromise = customization ? database_1.fetchAccount(playerUuid) : null; const profileUuid = await cached.fetchProfileUuid(user, profile); |