From 458968d7ffaedb49b7527cc367028167dfbeaa0c Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 30 Mar 2022 17:52:13 +0000 Subject: rename farmingContest to farmingContests --- src/cleaners/skyblock/farmingContents.ts | 2 +- src/cleaners/skyblock/member.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cleaners') diff --git a/src/cleaners/skyblock/farmingContents.ts b/src/cleaners/skyblock/farmingContents.ts index c10408d..9b34ba2 100644 --- a/src/cleaners/skyblock/farmingContents.ts +++ b/src/cleaners/skyblock/farmingContents.ts @@ -23,7 +23,7 @@ export interface FarmingContests { list: PlayerFarmingContestStats[] } -export function cleanFarmingContest(data: typedHypixelApi.SkyBlockProfileMember): FarmingContests { +export function cleanFarmingContests(data: typedHypixelApi.SkyBlockProfileMember): FarmingContests { if (!data.jacob2) return { talkedToJacob: false, list: [] diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts index a2010da..9306c59 100644 --- a/src/cleaners/skyblock/member.ts +++ b/src/cleaners/skyblock/member.ts @@ -1,3 +1,4 @@ +import { cleanFarmingContests, FarmingContests } from './farmingContents.js' import { cleanCoopInvitation, CoopInvitation } from './coopInvitation.js' import { cleanCollections, Collection } from './collections.js' import { cleanInventories, Inventories } from './inventory.js' @@ -8,7 +9,6 @@ import { cleanProfileStats, StatItem } from './stats.js' import { CleanMinion, cleanMinions } from './minions.js' import { cleanSlayers, SlayerData } from './slayers.js' import { AccountCustomization } from '../../database.js' -import { cleanFarmingContest, FarmingContests } from './farmingContents.js' import { cleanVisitedZones, Zone } from './zones.js' import { cleanSkills, Skill } from './skills.js' import * as cached from '../../hypixelCached.js' @@ -44,7 +44,7 @@ export interface CleanMember extends CleanBasicMember { pets: PetsData harp: HarpData coopInvitation: CoopInvitation | null - farmingContest: FarmingContests + farmingContests: FarmingContests /** Whether the user left the coop */ left: boolean } @@ -98,7 +98,7 @@ export async function cleanSkyBlockProfileMemberResponse(member: typedHypixelApi pets: await cleanPets(member), harp: await cleanHarp(member), coopInvitation: cleanCoopInvitation(member), - farmingContest: cleanFarmingContest(member), + farmingContests: cleanFarmingContests(member), left: (player.profiles?.find(profile => profile.uuid === profileId) === undefined) ?? false } @@ -124,7 +124,7 @@ export interface CleanMemberProfilePlayer extends CleanPlayer { pets: PetsData harp: HarpData coopInvitation: CoopInvitation | null - farmingContest: FarmingContests + farmingContests: FarmingContests } export interface CleanMemberProfile { -- cgit