mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
make 1 call for parentCids
This commit is contained in:
@@ -16,10 +16,9 @@ module.exports = function (Categories) {
|
||||
return setImmediate(callback, null, []);
|
||||
}
|
||||
|
||||
var keys = cids.map(cid => 'category:' + cid);
|
||||
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
const keys = cids.map(cid => 'category:' + cid);
|
||||
if (fields.length) {
|
||||
db.getObjectsFields(keys, fields, next);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user