diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-05-29 17:17:41 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-05-29 17:17:41 -0700 |
commit | f4edbce0eb2d1cddc2c921b12d65292cb3886455 (patch) | |
tree | 65c1583a3a20f6a6611de56ef482ceb58c07389c /lib | |
parent | 516d5ebe76ced7532fbe6c438ca5692d96acd757 (diff) | |
download | chessh-f4edbce0eb2d1cddc2c921b12d65292cb3886455.tar.gz chessh-f4edbce0eb2d1cddc2c921b12d65292cb3886455.zip |
Add node to scopes in web
Diffstat (limited to 'lib')
-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"}} |