summaryrefslogtreecommitdiff
path: root/app/services/issuable
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-21 09:10:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-21 09:10:19 +0000
commitb32f4c7a2810afb602c33d904c51bdb178d146b4 (patch)
tree877178b9e38df6ea33d554cca87017eb1e7db284 /app/services/issuable
parentd11791c814954de77f85be1c2f7b56168532c96d (diff)
downloadgitlab-ce-b32f4c7a2810afb602c33d904c51bdb178d146b4.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/issuable')
-rw-r--r--app/services/issuable/destroy_service.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/services/issuable/destroy_service.rb b/app/services/issuable/destroy_service.rb
index b75905fb5b0..6aab56f0f68 100644
--- a/app/services/issuable/destroy_service.rb
+++ b/app/services/issuable/destroy_service.rb
@@ -26,13 +26,15 @@ module Issuable
end
def delete_todos(actor, issuable)
- TodosDestroyer::DestroyedIssuableWorker
- .perform_async(issuable.id, issuable.class.name)
+ issuable.run_after_commit_or_now do
+ TodosDestroyer::DestroyedIssuableWorker.perform_async(issuable.id, issuable.class.name)
+ end
end
def delete_label_links(actor, issuable)
- Issuable::LabelLinksDestroyWorker
- .perform_async(issuable.id, issuable.class.name)
+ issuable.run_after_commit_or_now do
+ Issuable::LabelLinksDestroyWorker.perform_async(issuable.id, issuable.class.name)
+ end
end
end
end