mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 17:55:56 +08:00
fixed 流水线去掉没有流水线的仓库
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user