diff options
author | Stan Hu <stanhu@gmail.com> | 2016-08-06 07:25:51 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-08-10 09:28:21 -0700 |
commit | 4955a47cb1c52168114364e45a2fccf6bc105452 (patch) | |
tree | 50bb5ea1979a596edef53817aea75796686fc2a9 /lib/api/projects.rb | |
parent | ae2d3c417075c83e169ab7662f3dd11e3b2bf043 (diff) | |
download | gitlab-ce-4955a47cb1c52168114364e45a2fccf6bc105452.tar.gz |
Clean up project destructionclean-up-project-destroy
Instead of redirecting from the project service to the service and back to the model,
put all destruction code in the service. Also removes a possible source of failure
where run_after_commit may not destroy the project.
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 8fed7db8803..60cfc103afd 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -323,7 +323,7 @@ module API # DELETE /projects/:id delete ":id" do authorize! :remove_project, user_project - ::Projects::DestroyService.new(user_project, current_user, {}).pending_delete! + ::Projects::DestroyService.new(user_project, current_user, {}).async_execute end # Mark this project as forked from another |