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