dont ignore error

This commit is contained in:
barisusakli
2014-12-25 15:50:55 -05:00
parent e0edb71a8a
commit 8007bb0644

View File

@@ -36,9 +36,10 @@ module.exports = function(Categories) {
topics[i].index = data.start + i;
}
plugins.fireHook('filter:category.topics.get', {topics: topics, uid: data.uid}, function(err, params) {
next(null, params.topics);
});
plugins.fireHook('filter:category.topics.get', {topics: topics, uid: data.uid}, next);
},
function(results, next) {
next(null, results.topics);
}
], next);
}