BigW Consortium Gitlab

Commit 6dcd2d59 by Shinya Maeda

fetch to dig

parent c4441c62
......@@ -25,6 +25,6 @@ class PipelineSerializer < BaseSerializer
def represent_status(resource)
data = represent(resource, { only: [{ details: [:status] }] })
data.fetch(:details, {}).fetch(:status, {})
data.dig(:details, :status) || {}
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment