aboutsummaryrefslogtreecommitdiff
path: root/build/database.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-27 17:37:55 -0500
committermat <github@matdoes.dev>2021-05-27 17:37:55 -0500
commit92194d094fb55f93254706bbabaf3ece15952d98 (patch)
treeed5bc3a0bba51f68edc2dace88bc4b8e4757f4a2 /build/database.js
parent9f8a070d0cb625aade7bfb47a898ebb89e40b2e0 (diff)
downloadskyblock-api-92194d094fb55f93254706bbabaf3ece15952d98.tar.gz
skyblock-api-92194d094fb55f93254706bbabaf3ece15952d98.tar.bz2
skyblock-api-92194d094fb55f93254706bbabaf3ece15952d98.zip
log profile in fetchProfileUuid cache miss
Diffstat (limited to 'build/database.js')
-rw-r--r--build/database.js5
1 files changed, 3 insertions, 2 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;