mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
removed most of the db.sortedSetCards
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user