From 32408fc2c69b143b44849aeb6100e45ba5dd6b23 Mon Sep 17 00:00:00 2001 From: yystopf Date: Mon, 25 Aug 2025 15:51:44 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/pm/pipelines_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/pm/pipelines_controller.rb b/app/controllers/api/pm/pipelines_controller.rb index 6fb0ffdf1..05c8ea902 100644 --- a/app/controllers/api/pm/pipelines_controller.rb +++ b/app/controllers/api/pm/pipelines_controller.rb @@ -70,10 +70,10 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController # Rails.logger.info("@run_result======#{@run_result}") @disabled_workflows = Gitea::RepoUnit.where(repo_id: project_gpids, type: 10).where("config is not null") @pipelines = Action::Pipeline.select("distinct project_id,max(updated_at) as updated_at") - .where(project_id: @project_ids).group(:project_id).order("updated_at desc") + .where(project_id: @project_ids).group(:project_id).order("created_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? - @pipelines = kaminari_paginate(@pipelines.order("action_pipelines.id asc")) + @pipelines = kaminari_paginate(@pipelines) end end