tests: updated accounts-base _checkForCaseInsensitiveDuplicates

This commit is contained in:
Gabriel Grubba
2022-12-20 10:30:51 -03:00
parent 6915c623c7
commit 9ea38c75af

View File

@@ -1443,7 +1443,7 @@ export class AccountsServer extends AccountsCommon {
return options;
};
_checkForCaseInsensitiveDuplicates(
async _checkForCaseInsensitiveDuplicates(
fieldName,
displayName,
fieldValue,
@@ -1457,7 +1457,7 @@ export class AccountsServer extends AccountsCommon {
);
if (fieldValue && !skipCheck) {
const matchedUsers = Meteor.users
const matchedUsers = await Meteor.users
.find(
this._selectorForFastCaseInsensitiveLookup(fieldName, fieldValue),
{