FIX code bug

This commit is contained in:
Jasder 2020-09-28 11:26:37 +08:00
parent 7f9674baf3
commit fc6a05fe12
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class Ci::ProjectsController < Ci::BaseController
end end
def deactivate def deactivate
return render_error('已经是激活状态') if @repo.repo_active? return render_error('该项目已经取消激活') if !@repo.repo_active?
@project.update_column(open_devops: false) @project.update_column(open_devops: false)
@repo.deactivate! @repo.deactivate!