diff --git a/services/notifications/app/js/Notifications.js b/services/notifications/app/js/Notifications.js index 47b3b940db..c6ecf5d9eb 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 }, - { $set : doc }, + { $set : { ...doc } }, { upsert: true }, callback )