veli games data type conflict fix
This commit is contained in:
parent
7804ffae03
commit
5693526bb5
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user