From 8007bb0644e4fd64039d14840543e3ee85042233 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 25 Dec 2014 15:50:55 -0500 Subject: [PATCH] dont ignore error --- src/categories/topics.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/categories/topics.js b/src/categories/topics.js index 12b59263cf..d778e98b39 100644 --- a/src/categories/topics.js +++ b/src/categories/topics.js @@ -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); }