diff --git a/services/notifications/app/js/Notifications.js b/services/notifications/app/js/Notifications.js index 56cf979e72..47b3b940db 100644 --- a/services/notifications/app/js/Notifications.js +++ b/services/notifications/app/js/Notifications.js @@ -87,7 +87,7 @@ module.exports = Notifications = { } return db.notifications.update( { user_id: doc.user_id, key: notification.key }, - doc, + { $set : doc }, { upsert: true }, callback )