Skip to content

Commit

Permalink
fix create body formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseytruong committed Nov 26, 2024
1 parent 11fe440 commit 0ebe17c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lightspeed_restaurant/operations/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def handle_create_response(response, attributes)
if response.is_a?(Numeric)
attributes.merge(id: response)
elsif self == LightspeedRestaurantClient::ExternalPaymentProvider
response.merge(id: response['data'].first['id'])
response.merge(id: response['data']['id'])
else
response
end
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ebe17c

Please sign in to comment.