Commit ee0e9830 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

gitlab-ci service api: clean values instead of destroy

parent 0b57c118
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment