v1.18.x
Barış Soner Uşaklı 6 years ago
parent 1169de77ea
commit 20abc7fc47

@ -85,7 +85,8 @@ module.exports = function (Categories) {
async.waterfall([
function (next) {
var keys = categoryData.map(category => 'cid:' + category.cid + ':recent_tids');
const categoriesToLoad = categoryData.filter(category => parseInt(category.numRecentReplies, 10) > 0);
const keys = categoriesToLoad.map(category => 'cid:' + category.cid + ':recent_tids');
db.getSortedSetsMembers(keys, next);
},
function (results, next) {

Loading…
Cancel
Save