aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/skyblock/member.js
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-13 16:28:26 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-13 16:28:26 -0600
commit5c9ef89af1ee9af380ea82072a3a48d5db0f2c7a (patch)
tree8d3f2fc286a7f18931b1d561cf376b897e8f6d18 /build/cleaners/skyblock/member.js
parentdd513537e240bbaf12c4f204d49db88111633d98 (diff)
downloadskyblock-api-5c9ef89af1ee9af380ea82072a3a48d5db0f2c7a.tar.gz
skyblock-api-5c9ef89af1ee9af380ea82072a3a48d5db0f2c7a.tar.bz2
skyblock-api-5c9ef89af1ee9af380ea82072a3a48d5db0f2c7a.zip
move some code to make more sense
Diffstat (limited to 'build/cleaners/skyblock/member.js')
-rw-r--r--build/cleaners/skyblock/member.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/cleaners/skyblock/member.js b/build/cleaners/skyblock/member.js
index 6c43cff..736593a 100644
--- a/build/cleaners/skyblock/member.js
+++ b/build/cleaners/skyblock/member.js
@@ -21,6 +21,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanSkyBlockProfileMemberResponse = void 0;
const cached = __importStar(require("../../hypixelCached"));
+const fairysouls_1 = require("./fairysouls");
const minions_1 = require("./minions");
const stats_1 = require("./stats");
/** Cleans up a member (from skyblock/profile) */
@@ -34,7 +35,8 @@ async function cleanSkyBlockProfileMemberResponse(member, included = null) {
first_join: member.first_join,
// last_death: ??? idk how this is formatted,
stats: statsIncluded ? stats_1.cleanProfileStats(member === null || member === void 0 ? void 0 : member.stats) : undefined,
- minions: statsIncluded ? minions_1.cleanMinions(member === null || member === void 0 ? void 0 : member.crafted_generators) : undefined,
+ minions: statsIncluded ? minions_1.cleanMinions(member) : undefined,
+ fairy_souls: statsIncluded ? fairysouls_1.cleanFairySouls(member) : undefined
};
}
exports.cleanSkyBlockProfileMemberResponse = cleanSkyBlockProfileMemberResponse;