This commit is contained in:
Barış Soner Uşaklı
2017-06-26 16:51:45 -04:00
parent e6cbaf6d85
commit e0dc47f883
3 changed files with 21 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ module.exports = function (Categories) {
}, { alwaysStartAt: 0 }, next);
},
function (next) {
Categories.getPinnedTids('cid:' + cid + ':tids:pinned', 0, -1, next);
db.getSortedSetRevRange('cid:' + cid + ':tids:pinned', 0, -1, next);
},
function (pinnedTids, next) {
async.eachLimit(pinnedTids, 10, function (tid, next) {