aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-03-01 21:51:48 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-03-01 21:51:48 -0600
commitba9636747cee3d8d61df0da65258cc74aa4e5b8d (patch)
treeab01d98820217be574f1eb33173a00abec80836c /build
parenta0b4177d449b696221bf5b7da23949c98f499747 (diff)
downloadskyblock-api-ba9636747cee3d8d61df0da65258cc74aa4e5b8d.tar.gz
skyblock-api-ba9636747cee3d8d61df0da65258cc74aa4e5b8d.tar.bz2
skyblock-api-ba9636747cee3d8d61df0da65258cc74aa4e5b8d.zip
add more debug stuff
Diffstat (limited to 'build')
-rw-r--r--build/database.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/database.js b/build/database.js
index c3f2518..25f0b24 100644
--- a/build/database.js
+++ b/build/database.js
@@ -211,6 +211,8 @@ async function updateDatabaseMember(member, profile) {
return;
// store the member in recentlyUpdated so it cant update for 3 more minutes
recentlyUpdated.set(profile.uuid + member.uuid, true);
+ if (_1.debug)
+ console.log('adding member to leaderboards', member.username);
await constants.addStats(Object.keys(member.rawHypixelStats));
await constants.addCollections(member.collections.map(coll => coll.name));
await constants.addSkills(member.skills.map(skill => skill.name));
@@ -240,10 +242,12 @@ async function updateDatabaseMember(member, profile) {
.slice(0, 100);
cachedRawLeaderboards.set(attributeName, newRawLeaderboard);
}
+ if (_1.debug)
+ console.log('added member to leaderboards', member.username, leaderboardAttributes);
}
exports.updateDatabaseMember = updateDatabaseMember;
const queue = new queue_promise_1.default({
- concurrent: 3,
+ concurrent: 10,
interval: 500
});
/** Queue an update for the member's leaderboard data on the server if applicable */