This commit is contained in:
yystopf 2024-05-08 11:15:15 +08:00
parent a98fe05599
commit d385319764
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ class SyncRepositoryBranch < ApplicationRecord
def unbind_reposyncer
if self.sync_repository.sync_direction.to_i == 1
Reposync::DeleteRepoService.call(self.sync_repository&.repo_name, self.gitlink_branch_name)
Reposync::DeleteBranchService.call(self.sync_repository&.repo_name, self.gitlink_branch_name)
else
Reposync::DeleteRepoService.call(self.sync_repository&.repo_name, self.external_branch_name)
Reposync::DeleteBranchService.call(self.sync_repository&.repo_name, self.external_branch_name)
end
end