From 92194d094fb55f93254706bbabaf3ece15952d98 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 27 May 2021 17:37:55 -0500 Subject: log profile in fetchProfileUuid cache miss --- src/database.ts | 5 +++-- src/hypixelCached.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/database.ts b/src/database.ts index 2c679b6..c461277 100644 --- a/src/database.ts +++ b/src/database.ts @@ -98,6 +98,7 @@ async function connect(): Promise { profileLeaderboardsCollection = database.collection('profile-leaderboards') sessionsCollection = database.collection('sessions') accountsCollection = database.collection('accounts') + console.log('Connected to database :)') } interface StringNumber { @@ -592,12 +593,12 @@ const leaderboardUpdateProfileQueue = new Queue({ }) /** Queue an update for the member's leaderboard data on the server if applicable */ -export async function queueUpdateDatabaseMember(member: CleanMember, profile: CleanFullProfile): Promise { +export function queueUpdateDatabaseMember(member: CleanMember, profile: CleanFullProfile): void { leaderboardUpdateMemberQueue.enqueue(async() => await updateDatabaseMember(member, profile)) } /** Queue an update for the profile's leaderboard data on the server if applicable */ -export async function queueUpdateDatabaseProfile(profile: CleanFullProfile): Promise { +export function queueUpdateDatabaseProfile(profile: CleanFullProfile): void { leaderboardUpdateProfileQueue.enqueue(async() => await updateDatabaseProfile(profile)) } diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 6296dba..fd11a70 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -274,7 +274,7 @@ export async function fetchProfileUuid(user: string, profile: string): Promise