FIX ci active repo bug

This commit is contained in:
Jasder
2020-08-28 11:40:29 +08:00
parent b9a57be67d
commit 903103ec5d
2 changed files with 5 additions and 3 deletions

View File

@@ -16,10 +16,11 @@ class Ci::Repo < Ci::RemoteBase
[user, repo]
end
def activate!
def activate!(ci_user_id)
update_columns(repo_active: 1,
repo_signer: generate_code,
repo_secret: generate_code,
repo_user_id: ci_user_id,
repo_config: '.trustie-pipeline.yml',
repo_updated: Time.now.to_i)
end