FIX ci repo asstassion

This commit is contained in:
Jasder 2020-09-11 10:41:27 +08:00
parent 2e0d76575c
commit f9ec41f9bc
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class Ci::Repo < Ci::RemoteBase
repo.repo_secret = repo.generate_code
if repo.save!
Ci::Perm.auto_create!(user, repo)
repo.update_column(:repo_uid, repo.id)
repo
end
end