diff options
Diffstat (limited to 'backend/api/handlers.go')
| -rw-r--r-- | backend/api/handlers.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/api/handlers.go b/backend/api/handlers.go index a824f17..659e5c1 100644 --- a/backend/api/handlers.go +++ b/backend/api/handlers.go @@ -87,6 +87,7 @@ func (h *ApiHandler) GetGames(ctx context.Context, request GetGamesRequestObject } games[i] = Game{ GameID: int(row.GameID), + GameType: GameGameType(row.GameType), State: GameState(row.State), DisplayName: row.DisplayName, DurationSeconds: int(row.DurationSeconds), @@ -134,6 +135,7 @@ func (h *ApiHandler) GetGame(ctx context.Context, request GetGameRequestObject, } game := Game{ GameID: int(row.GameID), + GameType: GameGameType(row.GameType), State: GameState(row.State), DisplayName: row.DisplayName, DurationSeconds: int(row.DurationSeconds), |
