mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 01:00:54 +02:00
fixed mongo listRemoveAll
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -89,7 +89,6 @@ var DebugRoute = function(app) {
|
||||
});
|
||||
res.send();
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user