diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 20:43:27 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 20:43:27 -0600 |
commit | d78d095352806fd1e9be4cfc44a0873ca1dce210 (patch) | |
tree | e30087ffef6aa2a5f52489c91c4dafc4c51333c5 | |
parent | 5c2228adaf07c658824f8df51bf976f61902b7fc (diff) | |
download | skyblock-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.ts | 5 |
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, |