aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authormat-1 <github@matdoes.dev>2021-03-01 02:44:03 +0000
committermat-1 <github@matdoes.dev>2021-03-01 02:44:03 +0000
commitaad304f3f84aea9a07a9593908476171fd1c850f (patch)
tree05b668c4e4ede8f302c1274de78a2f9892fd2d3e /build
parenta9c51ee15186452696bd46c1eccab506cff6286a (diff)
downloadskyblock-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.js5
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()