summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-05 09:21:54 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-05 09:21:54 +0000
commita92d6b36c2d2892e8c070efb169f0c06815900ee (patch)
treee7119c41b0e0d0eb0cff50b19fbb2bb34315f5a4 /app/workers
parent39a48637e52c4afc58341edfb10167947d961b33 (diff)
downloadgitlab-ce-a92d6b36c2d2892e8c070efb169f0c06815900ee.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/remove_expired_group_links_worker.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/workers/remove_expired_group_links_worker.rb b/app/workers/remove_expired_group_links_worker.rb
index 147b412b772..a43e6fd11d5 100644
--- a/app/workers/remove_expired_group_links_worker.rb
+++ b/app/workers/remove_expired_group_links_worker.rb
@@ -8,5 +8,9 @@ class RemoveExpiredGroupLinksWorker
def perform
ProjectGroupLink.expired.destroy_all # rubocop: disable DestroyAll
+
+ GroupGroupLink.expired.find_in_batches do |link_batch|
+ Groups::GroupLinks::DestroyService.new(nil, nil).execute(link_batch)
+ end
end
end