summaryrefslogtreecommitdiff
path: root/app/services/destroy_group_service.rb
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-01-22 11:13:37 -0800
committerJosh Frye <joshfng@gmail.com>2016-01-29 09:14:16 -0500
commit91b9cbff8de538c2966bca94c517ee6aa346f79b (patch)
tree9bce929d696fca03c86bba32f73fdb057541b024 /app/services/destroy_group_service.rb
parent227728712ec5b469a36dbaf8c9511098b4817741 (diff)
downloadgitlab-ce-91b9cbff8de538c2966bca94c517ee6aa346f79b.tar.gz
First pass at deleting projects in the background.
Diffstat (limited to 'app/services/destroy_group_service.rb')
-rw-r--r--app/services/destroy_group_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/destroy_group_service.rb b/app/services/destroy_group_service.rb
index d929a676293..9189de390a2 100644
--- a/app/services/destroy_group_service.rb
+++ b/app/services/destroy_group_service.rb
@@ -9,7 +9,7 @@ class DestroyGroupService
@group.projects.each do |project|
# Skip repository removal because we remove directory with namespace
# that contain all this repositories
- ::Projects::DestroyService.new(project, current_user, skip_repo: true).execute
+ ::Projects::DestroyService.new(project, current_user, skip_repo: true).pending_delete!
end
@group.destroy