diff options
Diffstat (limited to 'backend/admin/handler.go')
| -rw-r--r-- | backend/admin/handler.go | 3 |
1 files changed, 2 insertions, 1 deletions
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), |
