added postcount to topic

This commit is contained in:
barisusakli
2014-11-24 21:45:13 -05:00
parent 0202666ed0
commit a69eafd9f7
2 changed files with 4 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ module.exports = function(Posts) {
};
function getTopicAndCategories(topicKeys, callback) {
db.getObjectsFields(topicKeys, ['uid', 'tid', 'title', 'cid', 'slug', 'deleted'], function(err, topics) {
db.getObjectsFields(topicKeys, ['uid', 'tid', 'title', 'cid', 'slug', 'deleted', 'postcount'], function(err, topics) {
if (err) {
return callback(err);
}