diff options
Diffstat (limited to 'app/graphql/mutations/issues/create.rb')
-rw-r--r-- | app/graphql/mutations/issues/create.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/graphql/mutations/issues/create.rb b/app/graphql/mutations/issues/create.rb index 0c1acdf316e..c8a4d0aaa86 100644 --- a/app/graphql/mutations/issues/create.rb +++ b/app/graphql/mutations/issues/create.rb @@ -81,9 +81,7 @@ module Mutations def resolve(project_path:, **attributes) project = authorized_find!(project_path) params = build_create_issue_params(attributes.merge(author_id: current_user.id), project) - - spam_params = ::Spam::SpamParams.new_from_request(request: context[:request]) - result = ::Issues::CreateService.new(container: project, current_user: current_user, params: params, spam_params: spam_params).execute + result = ::Issues::CreateService.new(container: project, current_user: current_user, params: params).execute check_spam_action_response!(result[:issue]) if result[:issue] |