We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03a9b6 commit d727d9eCopy full SHA for d727d9e
functions/src/users.ts
@@ -68,7 +68,7 @@ const sync = onCall<never>(async request => {
68
if (!canPerform(UserPermission.USER_MANAGEMENT, auth)) throw new HttpsError('permission-denied', 'permission-denied');
69
70
const listUsers = await authService.listUsers();
71
- listUsers.users.map(async userRecord => {
+ for (const userRecord of listUsers.users) {
72
logger.debug('[User::sync] userRecord: ' + JSON.stringify(userRecord));
73
const userRef = findUserById(userRecord.uid);
74
const userSnapshot = await userRef.get();
@@ -129,7 +129,7 @@ const sync = onCall<never>(async request => {
129
{ merge: true }
130
);
131
}
132
- });
+ }
133
return true;
134
});
135
0 commit comments