This commit is contained in:
Julian Lam
2016-04-28 14:18:19 -04:00
parent de9357970f
commit 5f36bfab01

View File

@@ -105,7 +105,10 @@ module.exports = function(Categories) {
function (next) {
topics.getTopicsFields(tids, ['tid', 'mainPid', 'slug', 'title', 'teaserPid', 'cid', 'postcount'], next);
},
async.apply(topics.getTeasers),
function(_topicData, next) {
topicData = _topicData;
topics.getTeasers(_topicData, next);
},
function (teasers, next) {
teasers.forEach(function(teaser, index) {
if (teaser) {