Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/work_items/create_service.rb')
-rw-r--r--app/services/work_items/create_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/work_items/create_service.rb b/app/services/work_items/create_service.rb
index ae355dc6d96..903736cf662 100644
--- a/app/services/work_items/create_service.rb
+++ b/app/services/work_items/create_service.rb
@@ -5,12 +5,12 @@ module WorkItems
extend ::Gitlab::Utils::Override
include WidgetableService
- def initialize(container:, spam_params:, current_user: nil, params: {}, widget_params: {})
+ def initialize(container:, perform_spam_check: true, current_user: nil, params: {}, widget_params: {})
super(
container: container,
current_user: current_user,
params: params,
- spam_params: spam_params,
+ perform_spam_check: perform_spam_check,
build_service: ::WorkItems::BuildService.new(container: container, current_user: current_user, params: params)
)
@widget_params = widget_params