diff options
Diffstat (limited to 'src/database.ts')
-rw-r--r-- | src/database.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database.ts b/src/database.ts index 2e48dbb..ce95578 100644 --- a/src/database.ts +++ b/src/database.ts @@ -190,7 +190,10 @@ export async function updateDatabaseMember(member: CleanMember, profile: CleanFu recentlyUpdated.set(profile.uuid + member.uuid, true) await constants.addStats(Object.keys(member.rawHypixelStats)) - await constants.addCollections(member.collections.map(value => value.name)) + await constants.addCollections(member.collections.map(coll => coll.name)) + await constants.addSkills(member.skills.map(skill => skill.name)) + await constants.addZones(member.visited_zones.map(zone => zone.name)) + const leaderboardAttributes = await getApplicableAttributes(member) await memberLeaderboardsCollection.updateOne( |