diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 15:11:55 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 15:11:55 -0600 |
commit | 55bebce01352854368d5ccb57d0b51390d808f78 (patch) | |
tree | 28afc9185bd68b25cb87fddea4edff7d8f6e4fce /build/hypixel.js | |
parent | d6d478d6165d7c17124dda64008b749cfb6b5c97 (diff) | |
download | skyblock-api-55bebce01352854368d5ccb57d0b51390d808f78.tar.gz skyblock-api-55bebce01352854368d5ccb57d0b51390d808f78.tar.bz2 skyblock-api-55bebce01352854368d5ccb57d0b51390d808f78.zip |
change compile target to es2019
Diffstat (limited to 'build/hypixel.js')
-rw-r--r-- | build/hypixel.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/hypixel.js b/build/hypixel.js index e72ab8c..61a8518 100644 --- a/build/hypixel.js +++ b/build/hypixel.js @@ -101,9 +101,9 @@ async function fetchUser({ user, uuid, username }, included = ['player']) { } } return { - player: playerData ?? null, - profiles: profilesData ?? basicProfilesData, - activeProfile: includeProfiles ? activeProfile?.uuid : undefined, + player: playerData !== null && playerData !== void 0 ? playerData : null, + profiles: profilesData !== null && profilesData !== void 0 ? profilesData : basicProfilesData, + activeProfile: includeProfiles ? activeProfile === null || activeProfile === void 0 ? void 0 : activeProfile.uuid : undefined, online: includeProfiles ? lastOnline > (Date.now() - exports.saveInterval) : undefined }; } |