update limit popular products
This commit is contained in:
parent
fa8f0ad380
commit
58d3b32c40
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user