fixed 流水线去掉没有流水线的仓库

This commit is contained in:
2025-04-21 12:06:02 +08:00
parent 2a0d4d6f45
commit 0274456442
2 changed files with 2 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController
@pipelines = Action::Pipeline.where(project_id: @project_ids).order(updated_at: :desc)
@pipelines = @pipelines.where("pipeline_name like ?", "%#{params[:pipeline_name]}%") if params[:pipeline_name].present?
@pipelines = @pipelines.where(pipeline_type: params[:pipeline_type]) if params[:pipeline_type].present?
@has_pipeline_ids = @pipelines.pluck(:project_id)
@pipelines = @pipelines
@pipelines = paginate @pipelines
end