From 9b8de2457d08194459e238da9bb1641a7c97271d Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 21 Apr 2025 14:09:35 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E6=B5=81=E6=B0=B4=E7=BA=BF=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/api/pm/pipelines/index.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/api/pm/pipelines/index.json.jbuilder b/app/views/api/pm/pipelines/index.json.jbuilder index 430873132..f13d013da 100644 --- a/app/views/api/pm/pipelines/index.json.jbuilder +++ b/app/views/api/pm/pipelines/index.json.jbuilder @@ -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?