Henry Oswald пре 10 година
родитељ
комит
84aad3e184

+ 1 - 1
services/notifications/app/coffee/Notifications.coffee

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

+ 1 - 1
services/notifications/test/unit/coffee/NotificationsTests.coffee

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