From dc9a35b325e891bf9de140144a20f5785caa38a6 Mon Sep 17 00:00:00 2001 From: andrusyakka Date: Tue, 1 Aug 2023 15:41:18 +0300 Subject: [PATCH] fix ids --- handler/users.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler/users.go b/handler/users.go index 08b0ef1..e83b430 100644 --- a/handler/users.go +++ b/handler/users.go @@ -8,6 +8,7 @@ import ( "crypto/sha256" "encoding/json" "fmt" + "github.com/google/uuid" "github.com/labstack/echo/v4" "net/http" "net/url" @@ -35,7 +36,7 @@ func (h *Handler) GetCurrentUser(c echo.Context) error { func (h *Handler) GetUserBatch(c echo.Context) error { var users []model.User - var ids []uint + var ids []uuid.UUID rawIds := c.Param("ids") decodedIds, err := url.QueryUnescape(rawIds)