From aca2096adb2568c4c19fff96c293aa9a625002be Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 5 Apr 2022 22:30:19 -0500 Subject: fix profiles being deleted incorrectly removed from lbs --- src/database.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/database.ts') diff --git a/src/database.ts b/src/database.ts index 9c2978b..f6de171 100644 --- a/src/database.ts +++ b/src/database.ts @@ -780,7 +780,8 @@ export async function updateDatabaseProfile(profile: CleanFullProfile): Promise< } else { // no leaderboard attributes, delete them! await profileLeaderboardsCollection.deleteOne({ - uuid: profile.uuid + uuid: profile.uuid, + profile: profile.uuid }) } -- cgit