mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
moved updateCategoryField out, db.delete only sends back err
This commit is contained in:
@@ -81,7 +81,9 @@ module.exports = function(db, module) {
|
||||
if (!key) {
|
||||
return callback();
|
||||
}
|
||||
db.collection('objects').remove({_key: key}, callback);
|
||||
db.collection('objects').remove({_key: key}, function(err, res) {
|
||||
callback(err);
|
||||
});
|
||||
};
|
||||
|
||||
module.deleteAll = function(keys, callback) {
|
||||
|
||||
Reference in New Issue
Block a user