fixed mongo listRemoveAll

v1.18.x
Baris Soner Usakli 11 years ago
parent dfc8aacbae
commit be316ff602

@ -722,6 +722,9 @@
} }
module.listRemoveAll = function(key, value, callback) { module.listRemoveAll = function(key, value, callback) {
if(value !== null && value !== undefined) {
value = value.toString();
}
db.collection('objects').update({_key: key }, { $pull: { array: value } }, function(err, result) { db.collection('objects').update({_key: key }, { $pull: { array: value } }, function(err, result) {
if(err) { if(err) {
if(callback) { if(callback) {

@ -89,7 +89,6 @@ var DebugRoute = function(app) {
}); });
res.send(); res.send();
}); });
}); });
}; };

Loading…
Cancel
Save