提交 c53de19f 编写于 作者: S Shinya Maeda

Use serializable_hash for compared results

上级 c8f13cc5
......@@ -108,7 +108,7 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
when :parsing
render json: '', status: :no_content
when :parsed
render json: result[:data], status: :ok
render json: result[:data].to_json, status: :ok
when :error
render json: { status_reason: result[:status_reason] }, status: :bad_request
else
......
......@@ -14,7 +14,7 @@ module Ci
status: :parsed,
data: TestReportsComparerSerializer
.new(project: project)
.represent(comparer).to_json
.represent(comparer).as_json
}
rescue => e
{ status: :error, status_reason: e.message }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册