From a73292ad98aa2c0cfa93797c4eb996648a8790bc Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 23 Jan 2025 16:19:52 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E6=B5=81=E6=B0=B4=E7=BA=BF=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E6=9F=A5=E8=AF=A2=E8=BF=90=E8=A1=8C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E6=88=90=E4=B8=80=E7=BB=B4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/pm/action_runs_controller.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/controllers/api/pm/action_runs_controller.rb b/app/controllers/api/pm/action_runs_controller.rb index 0e69d56a9..76cf64629 100644 --- a/app/controllers/api/pm/action_runs_controller.rb +++ b/app/controllers/api/pm/action_runs_controller.rb @@ -34,13 +34,10 @@ class Api::Pm::ActionRunsController < Api::Pm::BaseController @result << { name: file, - last_action_run: last_action_run_json, - history: { - total: total, - success: success, - failure: failure - } - } + total: total, + success: success, + failure: failure + }.merge(last_action_run) end render :json => @result end