Skip to content

Commit d2422ae

Browse files
minor update
1 parent 814fd27 commit d2422ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/admin/examples/auditUsers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ const auditUsers = async (args) => {
2525

2626
// Step 5 start
2727
let results = [];
28+
let opts = {};
2829

2930
for (const user of modifiedUsers) {
30-
const result = await usersApi.getUserProfiles(args.organizationId, user.email);
31+
opts.email = user.email;
32+
const result = await usersApi.getUserProfiles(args.organizationId, opts);
3133
results.push(result.users);
3234
}
3335
// Step 5 end

0 commit comments

Comments
 (0)