From 8dce89f78b9dde6d028fac156a29152a2d04488a Mon Sep 17 00:00:00 2001 From: Tristan <starcraft66@gmail.com> Date: Sun, 21 Jan 2024 14:31:25 -0500 Subject: [PATCH] Update lib/lanpartyseating/logic/station_logic.ex Co-authored-by: Nicolas Berbiche <nic.berbiche@gmail.com> --- lib/lanpartyseating/logic/station_logic.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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",