diff options
author | Josh Frye <joshfng@gmail.com> | 2016-01-22 22:13:37 +0300 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-01-29 17:14:16 +0300 |
commit | 91b9cbff8de538c2966bca94c517ee6aa346f79b (patch) | |
tree | 9bce929d696fca03c86bba32f73fdb057541b024 /lib/api/projects.rb | |
parent | 227728712ec5b469a36dbaf8c9511098b4817741 (diff) |
First pass at deleting projects in the background.
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 71bb342f844..1f991e600e3 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -187,7 +187,7 @@ module API else present @forked_project, with: Entities::Project, user_can_admin_project: can?(current_user, :admin_project, @forked_project) - end + end end # Update an existing project @@ -246,7 +246,7 @@ module API # DELETE /projects/:id delete ":id" do authorize! :remove_project, user_project - ::Projects::DestroyService.new(user_project, current_user, {}).execute + ::Projects::DestroyService.new(user_project, current_user, {}).pending_delete! end # Mark this project as forked from another |