check err

This commit is contained in:
barisusakli
2014-09-16 21:45:46 -04:00
parent b48d81310c
commit 6a64a3ab92

View File

@@ -18,6 +18,9 @@ module.exports = function(Categories) {
threadTools.purge(tid, 0, next); threadTools.purge(tid, 0, next);
}, next); }, next);
}, {alwaysStartAt: 0}, function(err) { }, {alwaysStartAt: 0}, function(err) {
if (err) {
return callback(err);
}
purgeCategory(cid, callback); purgeCategory(cid, callback);
}); });
}; };