fixed mongo listRemoveAll

This commit is contained in:
Baris Soner Usakli
2014-01-05 20:44:06 -05:00
parent dfc8aacbae
commit be316ff602
2 changed files with 3 additions and 1 deletions

View File

@@ -722,6 +722,9 @@
}
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) {
if(err) {
if(callback) {

View File

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