Fix: timer templ

This commit is contained in:
Grail Finder
2025-07-03 15:21:54 +03:00
parent 788c4efd9e
commit c9196d3202
2 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<hr />
{{if .Room.IsRunning}}
<p>Turn of the <span class="text-{{.Room.TeamTurn}}-500">{{.Room.TeamTurn}}</span> team</p>
{{template "turntimer" .Room.Settings}}
{{template "turntimer" .Room}}
{{if .Room.MimeDone}}
<p class="text-{{.Room.TeamTurn}}-500 text-xl">Waiting for guessers</p>
<p class="text-{{.Room.TeamTurn}}-500 text-xl">Given Clue: "{{.Room.FetchLastClueWord}}"</p>

View File

@ -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
}