mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fix tests
This commit is contained in:
@@ -210,8 +210,10 @@ module.exports = function(db, module) {
|
|||||||
}
|
}
|
||||||
var data = {};
|
var data = {};
|
||||||
fields.forEach(function(field) {
|
fields.forEach(function(field) {
|
||||||
|
if (field) {
|
||||||
field = helpers.fieldToString(field);
|
field = helpers.fieldToString(field);
|
||||||
data[field] = '';
|
data[field] = '';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
db.collection('objects').update({_key: key}, {$unset : data}, function(err, res) {
|
db.collection('objects').update({_key: key}, {$unset : data}, function(err, res) {
|
||||||
|
|||||||
Reference in New Issue
Block a user