From a51f7aefb2f6a247a57f01d3ca5acc300451bba2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 21 Mar 2025 02:11:49 +0900 Subject: fix(backend): fix various admin features --- backend/admin/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/admin/handler.go') diff --git a/backend/admin/handler.go b/backend/admin/handler.go index c0ddd43..123e6f4 100644 --- a/backend/admin/handler.go +++ b/backend/admin/handler.go @@ -320,6 +320,7 @@ func (h *Handler) postGameEdit(c echo.Context) error { } } + // TODO: transaction err = h.q.UpdateGame(c.Request().Context(), db.UpdateGameParams{ GameID: int32(gameID), GameType: gameType, @@ -374,7 +375,7 @@ func (h *Handler) postGameStart(c echo.Context) error { return echo.NewHTTPError(http.StatusBadRequest, "Invalid game id") } - startedAt := time.Now().Add(11 * time.Second) + startedAt := time.Now().Add(10 * time.Second) err = h.q.UpdateGameStartedAt(c.Request().Context(), db.UpdateGameStartedAtParams{ GameID: int32(gameID), -- cgit v1.2.3-70-g09d2