diff options
author | mat <github@matdoes.dev> | 2022-04-09 14:47:46 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-04-09 14:47:46 -0500 |
commit | 208d98cc47c956f3b4449ccc525a8f073d92d6c6 (patch) | |
tree | 61c227cc888757f5c7cb88a17c002caf5808812a /src/cleaners/skyblock | |
parent | 3d4d9e51880aa665541e335bcd5dfa8c9bce2299 (diff) | |
download | skyblock-api-208d98cc47c956f3b4449ccc525a8f073d92d6c6.tar.gz skyblock-api-208d98cc47c956f3b4449ccc525a8f073d92d6c6.tar.bz2 skyblock-api-208d98cc47c956f3b4449ccc525a8f073d92d6c6.zip |
Allow viewing profiles of removed members
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r-- | src/cleaners/skyblock/coopInvitation.ts | 3 | ||||
-rw-r--r-- | src/cleaners/skyblock/member.ts | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/coopInvitation.ts b/src/cleaners/skyblock/coopInvitation.ts index 6aa8803..0188772 100644 --- a/src/cleaners/skyblock/coopInvitation.ts +++ b/src/cleaners/skyblock/coopInvitation.ts @@ -10,9 +10,10 @@ export interface CoopInvitation { acceptedTimestamp: number | null } -export async function cleanCoopInvitation(data: typedHypixelApi.SkyBlockProfileMember): Promise<CoopInvitation | null> { +export async function cleanCoopInvitation(data: typedHypixelApi.SkyBlockProfileMember, uuid: string): Promise<CoopInvitation | null> { if (!data.coop_invitation) return null + return { invitedTimestamp: data.coop_invitation.timestamp, invitedBy: await cached.fetchBasicPlayer(data.coop_invitation.invited_by, false), diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts index 9231456..014c147 100644 --- a/src/cleaners/skyblock/member.ts +++ b/src/cleaners/skyblock/member.ts @@ -72,7 +72,7 @@ export async function cleanSkyBlockProfileMemberResponse(member: typedHypixelApi if (fairySouls.total > (maxFairySouls ?? 0)) await constants.setConstantValues({ max_fairy_souls: fairySouls.total }) - const coopInvitationPromise = cleanCoopInvitation(member) + const coopInvitationPromise = cleanCoopInvitation(member, member.uuid) const minionsPromise = cleanMinions(member) const skillsPromise = cleanSkills(member) const zonesPromise = cleanVisitedZones(member) |