From f4edbce0eb2d1cddc2c921b12d65292cb3886455 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 29 May 2023 17:17:41 -0700 Subject: [PATCH] Add node to scopes in web --- lib/chessh/web/web.ex | 1 + 1 file changed, 1 insertion(+) 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"}}