diff options
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r-- | src/hypixel.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts index b230575..a5b8f93 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -9,7 +9,7 @@ import { CleanBasicMember, CleanMemberProfile } from './cleaners/skyblock/member import { cleanSkyblockProfileResponse, CleanProfile, CleanBasicProfile, CleanFullProfile, CleanFullProfileBasicMembers } from './cleaners/skyblock/profile' import { cleanSkyblockProfilesResponse } from './cleaners/skyblock/profiles' import { debug } from '.' -import { updateDatabaseMember } from './database' +import { queueUpdateDatabaseMember } from './database' export type Included = 'profiles' | 'player' | 'stats' | 'inventories' @@ -183,7 +183,7 @@ export async function fetchMemberProfileUncached(playerUuid: string, profileUuid { mainMemberUuid: playerUuid } ) for (const member of profile.members) - updateDatabaseMember(member, profile) + queueUpdateDatabaseMember(member, profile) return profile } @@ -202,7 +202,7 @@ export async function fetchMemberProfilesUncached(playerUuid: string): Promise<C ) for (const profile of profiles) { for (const member of profile.members) { - updateDatabaseMember(member, profile) + queueUpdateDatabaseMember(member, profile) } } return profiles |