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