Browse Source

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

pull/348/head^2^2
xxq250 1 year ago
parent
commit
a8be844208
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/pm/pipelines_controller.rb

+ 1
- 1
app/controllers/api/pm/pipelines_controller.rb View File

@@ -69,7 +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)
@has_pipeline_ids = @pipelines.pluck(:project_id).uniq
@pipelines = @pipelines
@pipelines = paginate @pipelines
end


Loading…
Cancel
Save