Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/API/getSkyBlockProfiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class getSkyBlockProfiles extends Endpoint {
if (!res.data.profiles || !res.data.profiles.length) throw new Error(Errors.NO_SKYBLOCK_PROFILES);
const profiles: Map<SkyBlockProfileName | 'UNKNOWN', SkyBlockProfile> = new Map();
for (const profile of res.data.profiles) {
const garden = await this.handleGettingSkyBlockGarden(profile.profile_id);
const museum = await this.handleGettingSkyBlockMuseum(profile.profile_id);
const garden = options?.garden !== false ? await this.handleGettingSkyBlockGarden(profile.profile_id) : null;
const museum = options?.museum !== false ? await this.handleGettingSkyBlockMuseum(profile.profile_id) : null;
const parsedProfile = new SkyBlockProfile(profile, { uuid: query, garden, museum });
profiles.set(parsedProfile.profileName, parsedProfile);
}
Expand Down
Loading