removed most of the db.sortedSetCards

This commit is contained in:
barisusakli
2014-10-14 23:12:47 -04:00
parent 09bd42b9f6
commit 761f56aeb1
8 changed files with 25 additions and 20 deletions

View File

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