moved updateCategoryField out, db.delete only sends back err

This commit is contained in:
barisusakli
2014-11-15 22:41:45 -05:00
parent d485b65b67
commit 0a44d3f5e0
4 changed files with 24 additions and 22 deletions

View File

@@ -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) {