mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #8774
This commit is contained in:
committed by
GitHub
parent
ff4fcc23b6
commit
b3619d3d47
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user