diff --git a/internal/handler/product_handler.go b/internal/handler/product_handler.go index 97e7cc2..bdbe54f 100644 --- a/internal/handler/product_handler.go +++ b/internal/handler/product_handler.go @@ -138,13 +138,14 @@ func (h *ProductHandler) GetProduct(c *gin.Context) { func (h *ProductHandler) ListProducts(c *gin.Context) { ctx := c.Request.Context() + contextInfo := appcontext.FromGinContext(ctx) req := &contract.ListProductsRequest{ - Page: 1, - Limit: 10, + Page: 1, + Limit: 10, + OrganizationID: &contextInfo.OrganizationID, } - // Parse query parameters if pageStr := c.Query("page"); pageStr != "" { if page, err := strconv.Atoi(pageStr); err == nil { req.Page = page