mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +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',
|
'auth.local.passwordHashMethod': 'bcrypt',
|
||||||
};
|
};
|
||||||
if (!user.auth.local.email) set['auth.local.email'] = `${user._id}@example.com`;
|
if (!user.auth.local.email) set['auth.local.email'] = `${user._id}@example.com`;
|
||||||
await User.update(
|
await User.updateOne(
|
||||||
{ _id: user._id },
|
{ _id: user._id },
|
||||||
{ $set: set },
|
{ $set: set },
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user