Changes requested on code review

- using $unset
This commit is contained in:
denihs
2022-01-19 10:40:04 -04:00
parent 7cf0d925e1
commit 08a6987297

View File

@@ -84,8 +84,8 @@ Meteor.methods({
}
Meteor.users.update({ username: user.username }, {
$set: {
twoFactorAuthentication: {}
$unset: {
twoFactorAuthentication: 1
}
});
},