Add node to scopes in web

This commit is contained in:
Elizabeth Hunt 2023-05-29 17:17:41 -07:00
parent 516d5ebe76
commit f4edbce0eb
Signed by: simponic
GPG Key ID: 52B3774857EB24B1

View File

@ -312,6 +312,7 @@ defmodule Chessh.Web.Endpoint do
|> Game.update_with_status(attempted_move, fen, status) |> Game.update_with_status(attempted_move, fen, status)
|> Repo.update() |> Repo.update()
:syn.add_node_to_scopes([:games])
:syn.publish(:games, {:game, game.id}, {:new_move, attempted_move}) :syn.publish(:games, {:game, game.id}, {:new_move, attempted_move})
{200, %{message: "success"}} {200, %{message: "success"}}