Skip to content

Commit

Permalink
fixing spec failure in github
Browse files Browse the repository at this point in the history
  • Loading branch information
pamatyatake2 committed Aug 10, 2023
1 parent b00441a commit 406f275
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/idt/api/v2/distributions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ def pending_establishment(distribution_id)

def format_response(response)
response_body = response.raw_body

begin
parsed_response = JSON.parse(response_body)
parsed_response = JSON.parse(response_body.to_json)

# Convert keys from camelCase to snake_case
parsed_response.deep_transform_keys do |key|
Expand Down

0 comments on commit 406f275

Please sign in to comment.