mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 22:23:32 +08:00
clearing lb personal bests on clear pb
This commit is contained in:
parent
5c3fb2545b
commit
f269d0dfd8
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class UsersDAO {
|
|||
static async clearPb(uid) {
|
||||
return await mongoDB()
|
||||
.collection("users")
|
||||
.updateOne({ uid }, { $set: { personalBests: {} } });
|
||||
.updateOne({ uid }, { $set: { personalBests: {}, lbPersonalBests: {} } });
|
||||
}
|
||||
|
||||
static async isNameAvailable(name) {
|
||||
|
|
Loading…
Reference in a new issue