aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/database.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database.ts b/src/database.ts
index 334c9b1..e1fec7e 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -183,7 +183,10 @@ export async function updateDatabaseMember(member: CleanMember, profile: CleanFu
const leaderboardAttributes = await getApplicableAttributes(member)
await memberLeaderboardsCollection.updateOne(
- { uuid: member.uuid },
+ {
+ uuid: member.uuid,
+ profile: profile.uuid
+ },
{
'$set': {
stats: leaderboardAttributes,