Add node to scopes in web
This commit is contained in:
parent
516d5ebe76
commit
f4edbce0eb
@ -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"}}
|
||||||
|
Loading…
Reference in New Issue
Block a user