From 5988360d8cf0fc0028c6db1c82afc1e313ba0513 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 5 Aug 2024 02:27:53 +0900 Subject: feat(backend): return `game_type` in API response --- backend/api/handlers.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/api/handlers.go') 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), -- cgit v1.2.3-70-g09d2