mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
unset messageOpts as well
This commit is contained in:
@@ -34,5 +34,5 @@ module.exports =
|
||||
user_id:user_id
|
||||
_id:ObjectId(notification_id)
|
||||
updateOperation =
|
||||
"$unset": {templateKey:true}
|
||||
"$unset": {templateKey:true, messageOpts: true}
|
||||
db.notifications.update searchOps, updateOperation, callback
|
||||
|
||||
@@ -69,6 +69,6 @@ describe 'creating a user', ->
|
||||
user_id:user_id
|
||||
_id:ObjectId(notification_id)
|
||||
updateOperation =
|
||||
"$unset": {templateKey:true}
|
||||
"$unset": {templateKey:true, messageOpts:true}
|
||||
@updateStub.calledWith(searchOps, updateOperation).should.equal true
|
||||
done()
|
||||
|
||||
Reference in New Issue
Block a user