Skip to content

Commit

Permalink
Fix hotwired#522, hotwired#535. See PR 624.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalyzePlatypus authored Sep 19, 2024
1 parent 9562a65 commit f57cb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/channels/turbo/streams/broadcasts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def broadcast_prepend_later_to(*streamables, **opts)

def broadcast_refresh_later_to(*streamables, request_id: Turbo.current_request_id, **opts)
refresh_debouncer_for(*streamables, request_id: request_id).debounce do
Turbo::Streams::BroadcastStreamJob.perform_later stream_name_from(streamables), content: turbo_stream_refresh_tag(request_id: request_id, **opts)
Turbo::Streams::BroadcastStreamJob.perform_later stream_name_from(streamables), content: turbo_stream_refresh_tag(request_id: request_id, **opts).to_str # Sidekiq requires job arguments to be valid JSON types, such as String
end
end

Expand Down

1 comment on commit f57cb3e

@AnalyzePlatypus
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janklimo pointed out in hotwired#522 that we need to use #to_str and not to_s: to_s returns self

Please sign in to comment.