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 = []