mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
dont ignore error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user