aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-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,