gitlab-ci service api: clean values instead of destroy

This commit is contained in:
Dmitriy Zaporozhets 2013-10-29 18:13:51 +02:00
parent 0b57c118fc
commit ee0e9830c1

View file

@ -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