新增:解绑和更改状态接口

This commit is contained in:
2024-04-18 15:20:19 +08:00
parent eeb0994961
commit 6f458e0e79
4 changed files with 36 additions and 5 deletions

View File

@@ -2,8 +2,8 @@ json.total_count @group_sync_repository_branch.keys.count
json.sync_repository_branches @group_sync_repository_branch.each do |key|
json.gitlink_branch_name key[0][0]
json.external_branch_name key[0][1]
branches = @sync_repository_branches.where(gitlink_branch_name: key[0][0], external_branch_name: key[0][1])
branch = branches.last
branches = @sync_repository_branches.where(gitlink_branch_name: key[0][0], external_branch_name: key[0][1]).order(updated_at: :desc)
branch = branches.first
json.sync_time branch.sync_time
json.sync_status branch.sync_status
json.enable branch.enable