Fix: timers and styles
This commit is contained in:
@ -12,7 +12,7 @@ func StartTurnTimer(roomID string, timeLeft uint32) {
|
||||
logger := slog.Default().With("room_id", roomID)
|
||||
|
||||
onTurnEnd := func(ctx context.Context, roomID string) {
|
||||
room, err := repo.RoomGetByID(context.Background(), roomID)
|
||||
room, err := repo.RoomGetExtended(context.Background(), roomID)
|
||||
if err != nil {
|
||||
logger.Error("failed to get room by id", "error", err)
|
||||
return
|
||||
@ -36,4 +36,5 @@ func StartTurnTimer(roomID string, timeLeft uint32) {
|
||||
|
||||
func StopTurnTimer(roomID string) {
|
||||
timer.StopTurnTimer(roomID)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user