Skip to content

Commit

Permalink
simplify json generate
Browse files Browse the repository at this point in the history
  • Loading branch information
sazap10 committed Oct 18, 2024
1 parent d9837fb commit 9ae3b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/features/steps/pipeline_event_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_event_from_api(event_id)
if received_event
# This sucks
Maze::Server.pipeline_events.add({
body: JSON.parse(JSON.generate(received_event.to_h)),
body: JSON.parse(received_event.to_h.to_json),
request: received_event,
event_id: event_id
})
Expand Down

0 comments on commit 9ae3b99

Please sign in to comment.