From 58d3b32c40e6ad8cfb18b09f2bf0a206336f0b34 Mon Sep 17 00:00:00 2001 From: "aditya.siregar" Date: Wed, 11 Jun 2025 22:21:20 +0700 Subject: [PATCH] update limit popular products --- internal/handlers/http/order.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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"