From fe683387e67ac15f7c9847f10bd0ebed538e4539 Mon Sep 17 00:00:00 2001 From: John Shaughnessy Date: Wed, 1 Mar 2023 23:33:23 -0500 Subject: [PATCH] hotfix PR #688 --- lib/ret/hub.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ret/hub.ex b/lib/ret/hub.ex index aa21402db..1501b50fd 100644 --- a/lib/ret/hub.ex +++ b/lib/ret/hub.ex @@ -655,13 +655,15 @@ defmodule Ret.Hub do host = RoomAssigner.get_available_host(hub.host) if host && host != hub.host do - hub |> changeset_for_new_host(host) |> Repo.update!() + updated_hub = hub |> changeset_for_new_host(host) |> Repo.update!() RetWeb.Endpoint.broadcast("hub:" <> hub.hub_sid, "host_changed", %{ host: host, port: Hub.janus_port(), turn: Hub.generate_turn_info() }) + + updated_hub else hub end