This commit is contained in:
Jasder 2020-09-04 17:11:02 +08:00
parent 5c2bb71e57
commit 0777db4ab4
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class Ci::CloudAccountsController < Ci::BaseController
repo = Ci::Repo.where(repo_namespace: current_user.login, repo_name: params[:repo]).first repo = Ci::Repo.where(repo_namespace: current_user.login, repo_name: params[:repo]).first
begin begin
repo.activate!(ci_user.user_id) repo.activate!(ci_user.user_id)
bind_hook!(current_user, @cloud_account, repo) result = bind_hook!(current_user, @cloud_account, repo)
@project.update_columns(:open_devops, true, gitea_webhook_id: result['id']) @project.update_columns(:open_devops, true, gitea_webhook_id: result['id'])
@cloud_account.update_column(:ci_user_id, ci_user.user_id) @cloud_account.update_column(:ci_user_id, ci_user.user_id)