aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-28 20:43:27 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-28 20:43:27 -0600
commitd78d095352806fd1e9be4cfc44a0873ca1dce210 (patch)
treee30087ffef6aa2a5f52489c91c4dafc4c51333c5
parent5c2228adaf07c658824f8df51bf976f61902b7fc (diff)
downloadskyblock-api-d78d095352806fd1e9be4cfc44a0873ca1dce210.tar.gz
skyblock-api-d78d095352806fd1e9be4cfc44a0873ca1dce210.tar.bz2
skyblock-api-d78d095352806fd1e9be4cfc44a0873ca1dce210.zip
store player and profile for member leaderboards
-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,