diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-08 20:01:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 20:01:26 +0900 |
| commit | f766fae6c0fb10b906224660c61c9693cf74c426 (patch) | |
| tree | 0657dc91175f5dff31eb00da5e2f37b421be554f | |
| parent | e9f88eefec3e4098e9374e19c9e0f7a52c319f26 (diff) | |
| download | iosdc-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.go | 1 |
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, |
