veli games data type conflict fix

This commit is contained in:
Yared Yemane 2025-11-07 12:39:27 +03:00
parent 7804ffae03
commit 5693526bb5

View File

@ -3,6 +3,7 @@ package handlers
import ( import (
"context" "context"
"errors" "errors"
"fmt"
"time" "time"
// "fmt" // "fmt"
@ -135,10 +136,10 @@ func (h *Handler) StartGame(c *fiber.Ctx) error {
req.BrandID = h.Cfg.VeliGames.BrandID req.BrandID = h.Cfg.VeliGames.BrandID
} }
useId := c.Locals("user_id") // userId := c.Locals("user_id")
req.IP = c.IP() req.IP = c.IP()
req.PlayerID = useId.(string) req.PlayerID = fmt.Sprintf("%v", c.Locals("user_id"))
// 1⃣ Call StartGame service // 1⃣ Call StartGame service
res, err := h.veliVirtualGameSvc.StartGame(context.Background(), req) res, err := h.veliVirtualGameSvc.StartGame(context.Background(), req)