fix: transfer repository user id

This commit is contained in:
2021-08-27 10:54:20 +08:00
parent cf8278ee5e
commit c9e265f95c
2 changed files with 17 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ class Projects::TransferService < ApplicationService
end
def update_repo_url
project.repository.update!(url: @gitea_repo["clone_url"])
project.repository.update!(user_id: new_owner.id, url: @gitea_repo["clone_url"])
end
def update_visit_teams