aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-08 20:01:26 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 20:01:26 +0900
commitf766fae6c0fb10b906224660c61c9693cf74c426 (patch)
tree0657dc91175f5dff31eb00da5e2f37b421be554f
parente9f88eefec3e4098e9374e19c9e0f7a52c319f26 (diff)
downloadiosdc-japan-2025-albatross-f766fae6c0fb10b906224660c61c9693cf74c426.tar.gz
iosdc-japan-2025-albatross-f766fae6c0fb10b906224660c61c9693cf74c426.tar.zst
iosdc-japan-2025-albatross-f766fae6c0fb10b906224660c61c9693cf74c426.zip
fix(backend): fix an issue where game type is not set
-rw-r--r--backend/game/hub.go1
1 files changed, 1 insertions, 0 deletions
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,