From 35eea18311866fe9359786365572cd451e06bc12 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba <70247653+Grubba27@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:24:13 -0300 Subject: [PATCH] tests: updated rpassword_test_setup --- packages/accounts-password/password_tests_setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/accounts-password/password_tests_setup.js b/packages/accounts-password/password_tests_setup.js index 80964c72fd..48a34c8766 100644 --- a/packages/accounts-password/password_tests_setup.js +++ b/packages/accounts-password/password_tests_setup.js @@ -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 }), } );