summaryrefslogtreecommitdiff
path: root/app/services/issuable_base_service.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-08 15:08:58 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-08 15:08:58 +0000
commit6c346448fd3e3443e04d96b90b9bdf9df2be1a3e (patch)
tree89d7a1a52ea0a8c2a064af42870bf21b7722b96e /app/services/issuable_base_service.rb
parentb0d4724e47f94c9b1b2676382084ef964200e3c1 (diff)
downloadgitlab-ce-6c346448fd3e3443e04d96b90b9bdf9df2be1a3e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/issuable_base_service.rb')
-rw-r--r--app/services/issuable_base_service.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/issuable_base_service.rb b/app/services/issuable_base_service.rb
index a00a9a2021b..544b2170a02 100644
--- a/app/services/issuable_base_service.rb
+++ b/app/services/issuable_base_service.rb
@@ -231,7 +231,7 @@ class IssuableBaseService < ::BaseProjectService
before_create(issuable)
issuable_saved = issuable.with_transaction_returning_status do
- issuable.save
+ transaction_create(issuable)
end
if issuable_saved
@@ -339,6 +339,10 @@ class IssuableBaseService < ::BaseProjectService
issuable.save(touch: touch)
end
+ def transaction_create(issuable)
+ issuable.save
+ end
+
def update_task(issuable)
filter_params(issuable)