aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/handler.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-21 02:11:49 +0900
committernsfisis <nsfisis@gmail.com>2025-03-21 02:11:49 +0900
commita51f7aefb2f6a247a57f01d3ca5acc300451bba2 (patch)
treecdf2d96f43db3b54e55a9cd705dfd343cb65ade8 /backend/admin/handler.go
parent4acf8d51b257c30b1a5dd99bd515ac22ddd5b564 (diff)
downloadiosdc-japan-2025-albatross-a51f7aefb2f6a247a57f01d3ca5acc300451bba2.tar.gz
iosdc-japan-2025-albatross-a51f7aefb2f6a247a57f01d3ca5acc300451bba2.tar.zst
iosdc-japan-2025-albatross-a51f7aefb2f6a247a57f01d3ca5acc300451bba2.zip
fix(backend): fix various admin features
Diffstat (limited to 'backend/admin/handler.go')
-rw-r--r--backend/admin/handler.go3
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),