From cf8b4923974e9f685209dc1218be20a06cc0f5c9 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sat, 13 Feb 2021 20:26:37 -0600 Subject: fix caching issue if you visited player/:user then player/:user/:profile it would error --- build/cleaners/skyblock/member.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'build/cleaners/skyblock/member.js') 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; -- cgit