diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 20:26:37 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-13 20:26:37 -0600 |
commit | cf8b4923974e9f685209dc1218be20a06cc0f5c9 (patch) | |
tree | 8601d88ff265551fba9e2a05641981a505b9a281 /build/cleaners/skyblock/member.js | |
parent | cd707234194b41df933a3a287b5fbec3657063d5 (diff) | |
download | skyblock-api-cf8b4923974e9f685209dc1218be20a06cc0f5c9.tar.gz skyblock-api-cf8b4923974e9f685209dc1218be20a06cc0f5c9.tar.bz2 skyblock-api-cf8b4923974e9f685209dc1218be20a06cc0f5c9.zip |
fix caching issue
if you visited player/:user then player/:user/:profile it would error
Diffstat (limited to 'build/cleaners/skyblock/member.js')
-rw-r--r-- | build/cleaners/skyblock/member.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build/cleaners/skyblock/member.js b/build/cleaners/skyblock/member.js index 9d10a5e..39324de 100644 --- a/build/cleaners/skyblock/member.js +++ b/build/cleaners/skyblock/member.js @@ -20,12 +20,13 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.cleanSkyBlockProfileMemberResponse = exports.cleanSkyBlockProfileMemberResponseBasic = void 0; -const cached = __importStar(require("../../hypixelCached")); -const fairysouls_1 = require("./fairysouls"); +const stats_1 = require("./stats"); const inventory_1 = require("./inventory"); -const minions_1 = require("./minions"); +const fairysouls_1 = require("./fairysouls"); const objectives_1 = require("./objectives"); -const stats_1 = require("./stats"); +const minions_1 = require("./minions"); +const skills_1 = require("./skills"); +const cached = __importStar(require("../../hypixelCached")); async function cleanSkyBlockProfileMemberResponseBasic(member, included = null) { return { uuid: member.uuid, @@ -44,11 +45,13 @@ async function cleanSkyBlockProfileMemberResponse(member, included = null) { username: await cached.usernameFromUser(member.uuid), last_save: member.last_save, first_join: member.first_join, + purse: member.coin_purse, stats: stats_1.cleanProfileStats(member), minions: minions_1.cleanMinions(member), fairy_souls: fairysouls_1.cleanFairySouls(member), inventories: inventoriesIncluded ? await inventory_1.cleanInventories(member) : undefined, objectives: objectives_1.cleanObjectives(member), + skills: skills_1.cleanSkills(member) }; } exports.cleanSkyBlockProfileMemberResponse = cleanSkyBlockProfileMemberResponse; |