diff --git a/app/services/issues/create_service.rb b/app/services/issues/create_service.rb index f40cb4a8fa0..aba590494d6 100644 --- a/app/services/issues/create_service.rb +++ b/app/services/issues/create_service.rb @@ -4,16 +4,11 @@ module Issues include ResolveDiscussions def execute + @issue = BuildService.new(project, current_user, params).execute + filter_spam_check_params filter_resolve_discussion_params - issue_attributes = params.merge( - merge_request_for_resolving_discussions: merge_request_for_resolving_discussions_iid, - discussion_to_resolve: discussion_to_resolve_id - ) - - @issue = BuildService.new(project, current_user, issue_attributes).execute - create(@issue) end