From a7311ff5d33586077e62c73bc41575ba7c8cf44c Mon Sep 17 00:00:00 2001 From: mserranom Date: Wed, 1 Apr 2020 15:28:29 +0200 Subject: [PATCH] Added spread operator to value in db update --- services/notifications/app/js/Notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )