diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-08 15:08:58 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-08 15:08:58 +0000 |
commit | 6c346448fd3e3443e04d96b90b9bdf9df2be1a3e (patch) | |
tree | 89d7a1a52ea0a8c2a064af42870bf21b7722b96e /app/services/issuable_base_service.rb | |
parent | b0d4724e47f94c9b1b2676382084ef964200e3c1 (diff) | |
download | gitlab-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.rb | 6 |
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) |