diff --git a/lib/chessh/web/web.ex b/lib/chessh/web/web.ex index ec551c8..2e6e8b0 100644 --- a/lib/chessh/web/web.ex +++ b/lib/chessh/web/web.ex @@ -312,6 +312,7 @@ defmodule Chessh.Web.Endpoint do |> Game.update_with_status(attempted_move, fen, status) |> Repo.update() + :syn.add_node_to_scopes([:games]) :syn.publish(:games, {:game, game.id}, {:new_move, attempted_move}) {200, %{message: "success"}}