diff options
author | mat <github@matdoes.dev> | 2022-04-05 22:30:19 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-04-05 22:30:19 -0500 |
commit | aca2096adb2568c4c19fff96c293aa9a625002be (patch) | |
tree | d9fb5491aca3a0bef6460e1102451a63ff91abb8 /src | |
parent | 988122c5d6f94a4abf6446b0a8a7132ddb12737c (diff) | |
download | skyblock-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.ts | 3 |
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 }) } |