This commit is contained in:
parent
a98fe05599
commit
d385319764
|
@ -29,9 +29,9 @@ class SyncRepositoryBranch < ApplicationRecord
|
||||||
|
|
||||||
def unbind_reposyncer
|
def unbind_reposyncer
|
||||||
if self.sync_repository.sync_direction.to_i == 1
|
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
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue