mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
changed update to updateOne (#13932)
This commit is contained in:
parent
b7a6dd9706
commit
3492549081
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ async function deleteHabiticaData (user, email) {
|
|||
'auth.local.passwordHashMethod': 'bcrypt',
|
||||
};
|
||||
if (!user.auth.local.email) set['auth.local.email'] = `${user._id}@example.com`;
|
||||
await User.update(
|
||||
await User.updateOne(
|
||||
{ _id: user._id },
|
||||
{ $set: set },
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue