Commit ee0e9830 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

gitlab-ci service api: clean values instead of destroy

parent 3d31cff8b50b
......@@ -31,7 +31,11 @@ class Services < Grape::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