diff options
Diffstat (limited to 'app/graphql/mutations/snippets/create.rb')
-rw-r--r-- | app/graphql/mutations/snippets/create.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/graphql/mutations/snippets/create.rb b/app/graphql/mutations/snippets/create.rb index 96ac3f8a113..1c7dbfa751d 100644 --- a/app/graphql/mutations/snippets/create.rb +++ b/app/graphql/mutations/snippets/create.rb @@ -48,8 +48,7 @@ module Mutations process_args_for_params!(args) - spam_params = ::Spam::SpamParams.new_from_request(request: context[:request]) - service = ::Snippets::CreateService.new(project: project, current_user: current_user, params: args, spam_params: spam_params) + service = ::Snippets::CreateService.new(project: project, current_user: current_user, params: args) service_response = service.execute # Only when the user is not an api user and the operation was successful |