fixed 流水线重复生成

This commit is contained in:
xxq250 2025-04-21 14:09:35 +08:00
parent 0f2419cd93
commit 9b8de2457d
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
json.status 0
json.message "success"
json.count @pipelines.total_count
json.projects @pipelines.map(&:project_id).each do |project_id|
json.projects @pipelines.map(&:project_id).uniq.each do |project_id|
json.id project_id
project = Project.find_by(id: project_id)
if project.present?