From f57cb3e4119e4031aa2760bb79cde2a31da45460 Mon Sep 17 00:00:00 2001 From: Michoel Samuels Date: Thu, 19 Sep 2024 09:35:30 +0300 Subject: [PATCH] Fix #522, #535. See PR 624. --- app/channels/turbo/streams/broadcasts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/channels/turbo/streams/broadcasts.rb b/app/channels/turbo/streams/broadcasts.rb index a50c2070..5b4aba97 100644 --- a/app/channels/turbo/streams/broadcasts.rb +++ b/app/channels/turbo/streams/broadcasts.rb @@ -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