From f766fae6c0fb10b906224660c61c9693cf74c426 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 8 Aug 2024 20:01:26 +0900 Subject: fix(backend): fix an issue where game type is not set --- backend/game/hub.go | 1 + 1 file changed, 1 insertion(+) (limited to 'backend') diff --git a/backend/game/hub.go b/backend/game/hub.go index dc56f03..ac71152 100644 --- a/backend/game/hub.go +++ b/backend/game/hub.go @@ -599,6 +599,7 @@ func (hubs *Hubs) RestoreFromDB(ctx context.Context) error { } hubs.hubs[int(row.GameID)] = newGameHub(ctx, &game{ gameID: int(row.GameID), + gameType: gameType(row.GameType), durationSeconds: int(row.DurationSeconds), state: gameState(row.State), displayName: row.DisplayName, -- cgit v1.2.3-70-g09d2