We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10dfc4e + fe68338 commit f9d6d6aCopy full SHA for f9d6d6a
lib/ret/hub.ex
@@ -655,13 +655,15 @@ defmodule Ret.Hub do
655
host = RoomAssigner.get_available_host(hub.host)
656
657
if host && host != hub.host do
658
- hub |> changeset_for_new_host(host) |> Repo.update!()
+ updated_hub = hub |> changeset_for_new_host(host) |> Repo.update!()
659
660
RetWeb.Endpoint.broadcast("hub:" <> hub.hub_sid, "host_changed", %{
661
host: host,
662
port: Hub.janus_port(),
663
turn: Hub.generate_turn_info()
664
})
665
+
666
+ updated_hub
667
else
668
hub
669
end
0 commit comments