mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
perf: make single db call
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = function (User) {
|
|||||||
let ips = [];
|
let ips = [];
|
||||||
|
|
||||||
if (showIps) {
|
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 = '';
|
let line = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user