Fix: timers and styles

This commit is contained in:
Grail Finder
2025-07-16 11:06:13 +03:00
parent ccf0b8538f
commit 995f9f6249
8 changed files with 68 additions and 18 deletions

View File

@ -13,7 +13,7 @@ func (b *Bot) StartTurnTimer(timeLeft uint32) {
logger := b.log.With("room_id", b.RoomID)
onTurnEnd := func(ctx context.Context, roomID string) {
room, err := repos.RP.RoomGetByID(context.Background(), roomID)
room, err := repos.RP.RoomGetExtended(context.Background(), roomID)
if err != nil {
logger.Error("failed to get room by id", "error", err)
return
@ -46,4 +46,5 @@ func (b *Bot) StartTurnTimer(timeLeft uint32) {
func (b *Bot) StopTurnTimer() {
timer.StopTurnTimer(b.RoomID)
}
}