BigW Consortium Gitlab

Commit 3129dd50 by Stan Hu Committed by Dmitriy Zaporozhets

Make nested groups deletion synchronous to avoid potential race

parent 8b855eaf
......@@ -18,7 +18,8 @@ module Groups
end
group.children.each do |group|
DestroyService.new(group, current_user).async_execute
# This needs to be synchronous since the namespace gets destroyed below
DestroyService.new(group, current_user).execute
end
group.really_destroy!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment