Skip to content

Commit

Permalink
Update lib/lanpartyseating/logic/station_logic.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Berbiche <[email protected]>
  • Loading branch information
starcraft66 and berbiche authored Jan 21, 2024
1 parent 6acc5f8 commit 8dce89f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/lanpartyseating/logic/station_logic.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8dce89f

Please sign in to comment.