added to update operation, required by mongojs 3.x

This commit is contained in:
mserranom 2020-03-28 13:58:33 +01:00
parent 682fd526c0
commit 7183b88a37

View file

@ -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
)