From 7403fa8b6d7e173437672c742765f907aebb86c7 Mon Sep 17 00:00:00 2001 From: wandji20 Date: Tue, 15 Oct 2024 03:16:51 +0100 Subject: [PATCH] Replace connected app CableReady broadcast with ActionCable --- app/jobs/connect_app_job.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/jobs/connect_app_job.rb b/app/jobs/connect_app_job.rb index fa1b802d05..5a10e6f7c4 100644 --- a/app/jobs/connect_app_job.rb +++ b/app/jobs/connect_app_job.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true class ConnectAppJob < ApplicationJob - include CableReady::Broadcaster - def perform(app, token, channel: nil) url = I18n.t("connect_app.url") event = "connect-app" @@ -23,6 +21,6 @@ class ConnectAppJob < ApplicationJob locals: { enterprise:, connected_app: enterprise.connected_apps.discover_regen.first }, ) - cable_ready[channel].morph(selector:, html:).broadcast + ActionCable.server.broadcast(channel, { selector:, html: }) end end