diff --git a/internal/handlers/http/order.go b/internal/handlers/http/order.go index 7546ff8..87204a0 100644 --- a/internal/handlers/http/order.go +++ b/internal/handlers/http/order.go @@ -426,13 +426,9 @@ func (h *Handler) GetPopularProducts(c *gin.Context) { period := c.Query("period") status := order2.Paid.String() - limitStr := c.Query("limit") sortBy := c.Query("sort_by") - limit, err := strconv.Atoi(limitStr) - if err != nil { - limit = 10 // default limit - } + limit := 1000 if period != "d" && period != "w" && period != "m" { period = "d"