diff options
author | mat-1 <github@matdoes.dev> | 2021-03-01 02:44:03 +0000 |
---|---|---|
committer | mat-1 <github@matdoes.dev> | 2021-03-01 02:44:03 +0000 |
commit | aad304f3f84aea9a07a9593908476171fd1c850f (patch) | |
tree | 05b668c4e4ede8f302c1274de78a2f9892fd2d3e /build | |
parent | a9c51ee15186452696bd46c1eccab506cff6286a (diff) | |
download | skyblock-api-aad304f3f84aea9a07a9593908476171fd1c850f.tar.gz skyblock-api-aad304f3f84aea9a07a9593908476171fd1c850f.tar.bz2 skyblock-api-aad304f3f84aea9a07a9593908476171fd1c850f.zip |
Compiled TS into JS
Diffstat (limited to 'build')
-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() |