This commit is contained in:
barisusakli
2014-06-27 15:35:53 -04:00
parent 181613e946
commit a9e5e82431
6 changed files with 60 additions and 23 deletions

View File

@@ -100,7 +100,7 @@ middleware.checkPostIndex = function(req, res, next) {
};
middleware.checkTopicIndex = function(req, res, next) {
categories.getCategoryField(req.params.category_id, 'topic_count', function(err, topicCount) {
db.sortedSetCard('categories:' + req.params.category_id + ':tid', function(err, topicCount) {
if (err) {
return next(err);
}