Merge pull request #819 from BitBangersCode/mongo-fix

Add callback to mongo.searchRemove, fixes infinite schema update
v1.18.x
Julian Lam 11 years ago
commit e2960e3ed6

@ -145,11 +145,14 @@
});
}
module.searchRemove = function(key, id) {
module.searchRemove = function(key, id, callback) {
db.collection('search').remove({id:id, key:key}, function(err, result) {
if(err) {
winston.error('Error removing search ' + err.message);
}
if (typeof callback === 'function') {
callback()
}
});
}

Loading…
Cancel
Save