aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-05 22:30:19 -0500
committermat <github@matdoes.dev>2022-04-05 22:30:19 -0500
commitaca2096adb2568c4c19fff96c293aa9a625002be (patch)
treed9fb5491aca3a0bef6460e1102451a63ff91abb8 /src
parent988122c5d6f94a4abf6446b0a8a7132ddb12737c (diff)
downloadskyblock-api-aca2096adb2568c4c19fff96c293aa9a625002be.tar.gz
skyblock-api-aca2096adb2568c4c19fff96c293aa9a625002be.tar.bz2
skyblock-api-aca2096adb2568c4c19fff96c293aa9a625002be.zip
fix profiles being deleted incorrectly removed from lbs
Diffstat (limited to 'src')
-rw-r--r--src/database.ts3
1 files changed, 2 insertions, 1 deletions
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
})
}