tests: updated rpassword_test_setup

This commit is contained in:
Gabriel Grubba
2023-10-05 17:24:13 -03:00
parent 1a7ee29785
commit 35eea18311

View File

@@ -128,7 +128,7 @@ Meteor.methods(
if (!this.userId) throw new Error("Not logged in!");
await Meteor
.users
.update(this.userId, { $unset: { profile: 1, username: 1 } });
.updateAsync(this.userId, { $unset: { profile: 1, username: 1 } });
},
expireTokens:
@@ -137,6 +137,6 @@ Meteor.methods(
},
removeUser:
async username => await Meteor.users.remove({ "username": username }),
async username => await Meteor.users.removeAsync({ "username": username }),
}
);