新增:更改同步分支状态首次同步方向

This commit is contained in:
2024-04-22 15:47:20 +08:00
parent 0f5066f943
commit 946b449d9d
2 changed files with 9 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ json.sync_repository_branches @group_sync_repository_branch.each do |item|
branches = @sync_repository_branches.where(gitlink_branch_name: item.gitlink_branch_name, external_branch_name: item.external_branch_name).order(updated_at: :desc)
branch = branches.first
json.type branch&.sync_repository&.type
json.sync_time branch.sync_time.strftime("%Y-%m-%d %H:%M:%S")
json.sync_time branch.sync_time.present? ? branch.sync_time.strftime("%Y-%m-%d %H:%M:%S") : nil
json.sync_status branch.sync_status
json.enable branch.enable
json.reposync_branch_ids branches.pluck(:reposync_branch_id)