diff options
author | mat-1 <github@matdoes.dev> | 2021-03-01 19:40:35 +0000 |
---|---|---|
committer | mat-1 <github@matdoes.dev> | 2021-03-01 19:40:35 +0000 |
commit | 80fbc300471e138172f4527106cc2a6365894cd5 (patch) | |
tree | b25c455f5fd418b0843d73191a2d47d2a069695e /build/hypixelCached.js | |
parent | 7786408cc11fdf752fd03339a59a6d7d717d547d (diff) | |
download | skyblock-api-80fbc300471e138172f4527106cc2a6365894cd5.tar.gz skyblock-api-80fbc300471e138172f4527106cc2a6365894cd5.tar.bz2 skyblock-api-80fbc300471e138172f4527106cc2a6365894cd5.zip |
Compiled TS into JS
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r-- | build/hypixelCached.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 880d0fb..c4a3743 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -137,6 +137,8 @@ async function fetchPlayer(user) { path: 'player', args: { uuid: playerUuid } }); + if (!cleanPlayer) + return; // clone in case it gets modified somehow later const cleanPlayerClone = Object.assign({}, cleanPlayer); playerCache.set(playerUuid, cleanPlayerClone); |