mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
set key as well
not sure if this fixes dupe keys
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = function(db, module) {
|
||||
if (!key) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
data._key = key;
|
||||
db.collection('objects').update({_key: key}, {$set: data}, {upsert: true, w: 1}, function(err) {
|
||||
callback(err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user