diff options
author | mat-1 <github@matdoes.dev> | 2021-02-15 01:35:32 +0000 |
---|---|---|
committer | mat-1 <github@matdoes.dev> | 2021-02-15 01:35:32 +0000 |
commit | 84778bb94747390fbcc83a3d6a5bd69286208f61 (patch) | |
tree | cd515d0a8c51b0f343611fd78db7d08f34456c0b /build/hypixelCached.js | |
parent | 342d11858b4db9981a23a27dfb28e18d18a4c2fa (diff) | |
download | skyblock-api-84778bb94747390fbcc83a3d6a5bd69286208f61.tar.gz skyblock-api-84778bb94747390fbcc83a3d6a5bd69286208f61.tar.bz2 skyblock-api-84778bb94747390fbcc83a3d6a5bd69286208f61.zip |
Compiled TS into JS
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r-- | build/hypixelCached.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index cb8d0db..c357763 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -138,7 +138,8 @@ async function fetchSkyblockProfiles(playerUuid) { uuid: m.uuid, username: m.username, first_join: m.first_join, - last_save: m.last_save + last_save: m.last_save, + rank: m.rank }; }) }; @@ -170,6 +171,9 @@ async function fetchBasicProfiles(user) { * @param profile A profile name or profile uuid */ async function fetchProfileUuid(user, profile) { + // if a profile wasn't provided, return + if (!profile) + return null; const profiles = await fetchBasicProfiles(user); const profileUuid = util_1.undashUuid(profile); for (const p of profiles) { |