From c9196d3202ba0eaadf8173f45030b2539cd914d3 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 3 Jul 2025 15:21:54 +0300 Subject: [PATCH] Fix: timer templ --- components/room.html | 2 +- handlers/actions.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/room.html b/components/room.html index 92e13bd..207e242 100644 --- a/components/room.html +++ b/components/room.html @@ -25,7 +25,7 @@
{{if .Room.IsRunning}}

Turn of the {{.Room.TeamTurn}} team

-{{template "turntimer" .Room.Settings}} +{{template "turntimer" .Room}} {{if .Room.MimeDone}}

Waiting for guessers

Given Clue: "{{.Room.FetchLastClueWord}}"

diff --git a/handlers/actions.go b/handlers/actions.go index 26fae08..80a02cb 100644 --- a/handlers/actions.go +++ b/handlers/actions.go @@ -81,6 +81,9 @@ func saveFullInfo(ctx context.Context, fi *models.FullInfo) error { return err } log.Debug("saved user state", "state", fi.State) + // save or update + // fi.Room.Cards + // fi.Room.WCMap if err := repo.RoomUpdate(ctx, fi.Room); err != nil { return err }