fixed mongodb 3.x change requiring

This commit is contained in:
mserranom 2020-03-06 19:15:21 +01:00
parent 9bbc8c7483
commit 3eb217402b

View file

@ -50,7 +50,7 @@ module.exports = ThreadManager = {
}
}
return db.rooms.update(query, update, { upsert: true }, function(error) {
return db.rooms.update(query, {'$set' : update}, { upsert: true }, function(error) {
if (error != null) {
return callback(error)
}