mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
perf: make single db call
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = function (User) {
|
||||
let ips = [];
|
||||
|
||||
if (showIps) {
|
||||
ips = await Promise.all(uids.map(uid => db.getSortedSetRevRange(`uid:${uid}:ip`, 0, -1)));
|
||||
ips = await db.getSortedSetsMembers(uids.map(uid => `uid:${uid}:ip`));
|
||||
}
|
||||
|
||||
let line = '';
|
||||
|
||||
Reference in New Issue
Block a user