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

@@ -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);
};
};