From 4b93cab54ed4796be2c204e10329cb5dd23f4bc1 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 17 Apr 2025 10:26:51 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E7=BB=84=E7=BB=87=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3,=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E5=86=85=E6=89=80=E6=9C=89=E4=BB=93=E5=BA=93,?= =?UTF-8?q?=E5=88=86=E7=BB=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/pm/pipelines_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/pm/pipelines_controller.rb b/app/controllers/api/pm/pipelines_controller.rb index f6691e184..5a8a13420 100644 --- a/app/controllers/api/pm/pipelines_controller.rb +++ b/app/controllers/api/pm/pipelines_controller.rb @@ -9,7 +9,7 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController project_gpids = @owner.projects.pluck(:gpid) action_runs = Gitea::ActionRun.where(owner_id: @owner.gitea_uid) group_data = action_runs.where(status: [1,2]).group(:workflow_id, :status).count - pipelines = Action::Pipeline.where(project_id: project_ids).order(updated_at: :desc) + pipelines = Action::Pipeline.where(project_id: @project_ids).order(updated_at: :desc) run_files = Gitea::ActionRun.select(:workflow_id, :repo_id).where(owner_id: @owner.gitea_uid).group(:workflow_id, :repo_id) db_files = pipelines.pluck(:file_name) @run_result = []