@@ -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', ->
+ "$unset": {templateKey:true, messageOpts:true}
@updateStub.calledWith(searchOps, updateOperation).should.equal true
done()