mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
Added spread operator to value in db update
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user