aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/handler.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-08 14:43:21 +0900
committernsfisis <nsfisis@gmail.com>2025-03-08 14:43:21 +0900
commitbb844de6a8acdbc5d4fbffbd74daa54e6dd19efe (patch)
tree168bd54e71a4d533bf3b2a9c5edb6c841503c06f /backend/api/handler.go
parent9e9e7e685e04d6baac13906c0dd0aa2afd59eefc (diff)
downloadphperkaigi-2025-albatross-bb844de6a8acdbc5d4fbffbd74daa54e6dd19efe.tar.gz
phperkaigi-2025-albatross-bb844de6a8acdbc5d4fbffbd74daa54e6dd19efe.tar.zst
phperkaigi-2025-albatross-bb844de6a8acdbc5d4fbffbd74daa54e6dd19efe.zip
fix
Diffstat (limited to 'backend/api/handler.go')
-rw-r--r--backend/api/handler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/api/handler.go b/backend/api/handler.go
index 949c610..4896a28 100644
--- a/backend/api/handler.go
+++ b/backend/api/handler.go
@@ -5,6 +5,7 @@ import (
"errors"
"log"
"net/http"
+ "strconv"
"github.com/jackc/pgx/v5"
"github.com/labstack/echo/v4"
@@ -230,7 +231,7 @@ func (h *Handler) GetGameWatchLatestStates(ctx context.Context, request GetGameW
} else {
status = None
}
- states[string(row.UserID)] = LatestGameState{
+ states[strconv.Itoa(int(row.UserID))] = LatestGameState{
Code: code,
Score: score,
Status: status,