Skip to content

Commit

Permalink
fix: #8774
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 18, 2020
1 parent ff4fcc2 commit b3619d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/admin/users.js
Expand Up @@ -208,7 +208,7 @@ async function getInvites() {
});

async function getUsernamesByEmails(emails) {
const uids = await db.sortedSetScore('email:uid', emails.map(email => String(email).toLowerCase()));
const uids = await db.sortedSetScores('email:uid', emails.map(email => String(email).toLowerCase()));
const usernames = await user.getUsersFields(uids, ['username']);
return usernames.map(user => user.username);
}
Expand Down

0 comments on commit b3619d3

Please sign in to comment.