diff --git a/lib/lanpartyseating/logic/station_logic.ex b/lib/lanpartyseating/logic/station_logic.ex index 8d7e888..9eef300 100644 --- a/lib/lanpartyseating/logic/station_logic.ex +++ b/lib/lanpartyseating/logic/station_logic.ex @@ -64,8 +64,9 @@ defmodule Lanpartyseating.StationLogic do is_closed: is_broken ) - with {:ok, update} <- Repo.update(station) do - {:ok, stations} = StationLogic.get_all_stations() + with {:ok, update} <- Repo.update(station), + {:ok, stations} <- StationLogic.get_all_stations() + do Phoenix.PubSub.broadcast( PubSub, "station_update",