mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
unset messageOpts as well
This commit is contained in:
parent
50d66e9f31
commit
84aad3e184
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue