diff options
Diffstat (limited to 'lib/gitlab/email/handler/create_note_handler.rb')
-rw-r--r-- | lib/gitlab/email/handler/create_note_handler.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/gitlab/email/handler/create_note_handler.rb b/lib/gitlab/email/handler/create_note_handler.rb index d87ba427f4b..0a9e928d13f 100644 --- a/lib/gitlab/email/handler/create_note_handler.rb +++ b/lib/gitlab/email/handler/create_note_handler.rb @@ -45,13 +45,7 @@ module Gitlab Notes::CreateService.new( project, author, - note: message, - noteable_type: sent_notification.noteable_type, - noteable_id: sent_notification.noteable_id, - commit_id: sent_notification.commit_id, - line_code: sent_notification.line_code, - position: sent_notification.position, - type: sent_notification.note_type + sent_notification.note_params.merge(note: message) ).execute end end |