gitlab-ci service api: clean values instead of destroy
This commit is contained in:
parent
0b57c118fc
commit
ee0e9830c1
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ module API
|
|||
# DELETE /projects/:id/keys/:id
|
||||
delete ":id/services/gitlab-ci" do
|
||||
if user_project.gitlab_ci_service
|
||||
user_project.gitlab_ci_service.destroy
|
||||
user_project.gitlab_ci_service.update_attributes(
|
||||
active: false,
|
||||
token: nil,
|
||||
project_url: nil
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue