mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
check err
This commit is contained in:
@@ -18,6 +18,9 @@ module.exports = function(Categories) {
|
||||
threadTools.purge(tid, 0, next);
|
||||
}, next);
|
||||
}, {alwaysStartAt: 0}, function(err) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
purgeCategory(cid, callback);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user