Skip to content
Snippets Groups Projects
Commit 6dcd2d59 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

fetch to dig

parent c4441c62
No related branches found
No related tags found
1 merge request!9561Expose CI/CD status API endpoints with Gitlab::Ci::Status facility on pipeline, job and merge request for favicon
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment