diff --git a/internal/web_server/handlers/veli_games.go b/internal/web_server/handlers/veli_games.go index 607ac06..723777f 100644 --- a/internal/web_server/handlers/veli_games.go +++ b/internal/web_server/handlers/veli_games.go @@ -3,6 +3,7 @@ package handlers import ( "context" "errors" + "fmt" "time" // "fmt" @@ -135,10 +136,10 @@ func (h *Handler) StartGame(c *fiber.Ctx) error { req.BrandID = h.Cfg.VeliGames.BrandID } - useId := c.Locals("user_id") - + // userId := c.Locals("user_id") + req.IP = c.IP() - req.PlayerID = useId.(string) + req.PlayerID = fmt.Sprintf("%v", c.Locals("user_id")) // 1️⃣ Call StartGame service res, err := h.veliVirtualGameSvc.StartGame(context.Background(), req)