Explorar o código

fixed mongodb 3.x change requiring

mserranom %!s(int64=6) %!d(string=hai) anos
pai
achega
3eb217402b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/chat/app/js/Features/Threads/ThreadManager.js

+ 1 - 1
services/chat/app/js/Features/Threads/ThreadManager.js

@@ -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)
       }