diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-11 22:15:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-11 22:54:29 +0900 |
| commit | 34d61fcc7035ebd7ffb636d13308166c90b474b2 (patch) | |
| tree | cf120caf0b1d27b4067b1e1133b787618906d8fc /backend/admin/handler.go | |
| parent | c7599c74722864d54c96a3f3d52e28290abb9eac (diff) | |
| download | phperkaigi-2025-albatross-34d61fcc7035ebd7ffb636d13308166c90b474b2.tar.gz phperkaigi-2025-albatross-34d61fcc7035ebd7ffb636d13308166c90b474b2.tar.zst phperkaigi-2025-albatross-34d61fcc7035ebd7ffb636d13308166c90b474b2.zip | |
feat: simplify starting procedure
Diffstat (limited to 'backend/admin/handler.go')
| -rw-r--r-- | backend/admin/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/admin/handler.go b/backend/admin/handler.go index d540f57..5398107 100644 --- a/backend/admin/handler.go +++ b/backend/admin/handler.go @@ -231,7 +231,7 @@ func (h *Handler) postGameEdit(c echo.Context) error { { // TODO: - if state != row.State && state == "prepare" { + if state != row.State && state == "starting" { err := h.hubs.StartGame(int(gameID)) if err != nil { return echo.NewHTTPError(http.StatusInternalServerError, err.Error()) |
