From 34d61fcc7035ebd7ffb636d13308166c90b474b2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 11 Aug 2024 22:15:36 +0900 Subject: feat: simplify starting procedure --- backend/admin/handler.go | 2 +- backend/admin/templates/game_edit.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'backend/admin') 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()) diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html index c1e38a6..66f3b9e 100644 --- a/backend/admin/templates/game_edit.html +++ b/backend/admin/templates/game_edit.html @@ -25,9 +25,7 @@