Merge branch 'develop' into sabrecat/teams-rebase

This commit is contained in:
SabreCat
2022-04-21 14:10:27 -05:00
57 changed files with 4572 additions and 4250 deletions

View File

@@ -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 },
);