Browse Source

added to update operation, required by mongojs 3.x

mserranom 6 years ago
parent
commit
7183b88a37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/notifications/app/js/Notifications.js

+ 1 - 1
services/notifications/app/js/Notifications.js

@@ -87,7 +87,7 @@ module.exports = Notifications = {
       }
       }
       return db.notifications.update(
       return db.notifications.update(
         { user_id: doc.user_id, key: notification.key },
         { user_id: doc.user_id, key: notification.key },
-        doc,
+        { $set : doc },
         { upsert: true },
         { upsert: true },
         callback
         callback
       )
       )