diff options
Diffstat (limited to 'build/database.js')
-rw-r--r-- | build/database.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/database.js b/build/database.js index d30b161..ca23273 100644 --- a/build/database.js +++ b/build/database.js @@ -168,7 +168,10 @@ async function updateDatabaseMember(member, profile) { await constants.addStats(Object.keys(member.rawHypixelStats)); await constants.addCollections(member.collections.map(value => value.name)); const leaderboardAttributes = await getApplicableAttributes(member); - await memberLeaderboardsCollection.updateOne({ uuid: member.uuid }, { + await memberLeaderboardsCollection.updateOne({ + uuid: member.uuid, + profile: profile.uuid + }, { '$set': { stats: leaderboardAttributes, last_updated: new Date() |