Skip to content

Node.js based forum software built for the modern web

fix: #8774

Barış Soner Uşaklıb3619d3d476c
diff --git a/src/controllers/admin/users.js b/src/controllers/admin/users.js
index 00f43015e5..26edf7a001 100644
--- a/src/controllers/admin/users.js
+++ b/src/controllers/admin/users.js
@@ -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);
}