mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
changed update to updateOne (#13932)
This commit is contained in:
@@ -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 },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user