From bb844de6a8acdbc5d4fbffbd74daa54e6dd19efe Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 8 Mar 2025 14:43:21 +0900 Subject: fix --- backend/api/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/api/handler.go') 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, -- cgit v1.2.3-70-g09d2