mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
removed most of the db.sortedSetCards
This commit is contained in:
@@ -263,7 +263,7 @@ module.exports = function(Topics) {
|
||||
};
|
||||
|
||||
Topics.getPostCount = function(tid, callback) {
|
||||
db.sortedSetCard('tid:' + tid + ':posts', callback);
|
||||
db.getObjectField('topic:' + tid, 'postcount', callback);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user