fixed 流水线重复生成,分页
This commit is contained in:
parent
bddfe9d8f7
commit
2a1372cf5a
|
@ -69,7 +69,6 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController
|
||||||
@pipelines = Action::Pipeline.where(project_id: @project_ids).order(updated_at: :desc)
|
@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_name like ?", "%#{params[:pipeline_name]}%") if params[:pipeline_name].present?
|
||||||
@pipelines = @pipelines.where(pipeline_type: params[:pipeline_type]) if params[:pipeline_type].present?
|
@pipelines = @pipelines.where(pipeline_type: params[:pipeline_type]) if params[:pipeline_type].present?
|
||||||
@pipelines = @pipelines
|
|
||||||
@pipelines = paginate @pipelines
|
@pipelines = paginate @pipelines
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue