diff options
Diffstat (limited to 'lib/chessh/web/web.ex')
-rw-r--r-- | lib/chessh/web/web.ex | 1 |
1 files changed, 1 insertions, 0 deletions
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"}} |