Skip to content
Snippets Groups Projects
Commit ee0e9830 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

gitlab-ci service api: clean values instead of destroy

parent 0b57c118
Branches
Tags
1 merge request!1Fix Links To Gitlab Cloud
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment