aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/database.js5
-rw-r--r--build/hypixelCached.js2
2 files changed, 4 insertions, 3 deletions
diff --git a/build/database.js b/build/database.js
index 2d1f5e9..c405438 100644
--- a/build/database.js
+++ b/build/database.js
@@ -65,6 +65,7 @@ async function connect() {
profileLeaderboardsCollection = database.collection('profile-leaderboards');
sessionsCollection = database.collection('sessions');
accountsCollection = database.collection('accounts');
+ console.log('Connected to database :)');
}
function getMemberCollectionAttributes(member) {
const collectionAttributes = {};
@@ -468,12 +469,12 @@ const leaderboardUpdateProfileQueue = new queue_promise_1.default({
interval: 2000
});
/** Queue an update for the member's leaderboard data on the server if applicable */
-async function queueUpdateDatabaseMember(member, profile) {
+function queueUpdateDatabaseMember(member, profile) {
leaderboardUpdateMemberQueue.enqueue(async () => await updateDatabaseMember(member, profile));
}
exports.queueUpdateDatabaseMember = queueUpdateDatabaseMember;
/** Queue an update for the profile's leaderboard data on the server if applicable */
-async function queueUpdateDatabaseProfile(profile) {
+function queueUpdateDatabaseProfile(profile) {
leaderboardUpdateProfileQueue.enqueue(async () => await updateDatabaseProfile(profile));
}
exports.queueUpdateDatabaseProfile = queueUpdateDatabaseProfile;
diff --git a/build/hypixelCached.js b/build/hypixelCached.js
index 702a23e..8c5fa3c 100644
--- a/build/hypixelCached.js
+++ b/build/hypixelCached.js
@@ -255,7 +255,7 @@ async function fetchProfileUuid(user, profile) {
return null;
}
if (_1.debug)
- console.debug('Cache miss: fetchProfileUuid', user);
+ console.debug('Cache miss: fetchProfileUuid', user, profile);
const profiles = await fetchBasicProfiles(user);
if (!profiles)
return; // user probably doesnt exist