Fix Product Analysitcs

This commit is contained in:
Aditya Siregar
2025-09-22 22:12:54 +07:00
parent 26ac7a2752
commit b29677a192
4 changed files with 35 additions and 23 deletions
+2 -2
View File
@@ -185,8 +185,8 @@ func (s *AnalyticsServiceImpl) validateProductAnalyticsRequest(req *models.Produ
return fmt.Errorf("date_from cannot be after date_to")
}
if req.Limit < 1 || req.Limit > 100 {
return fmt.Errorf("limit must be between 1 and 100")
if req.Limit < 1 || req.Limit > 1000 {
return fmt.Errorf("limit must be between 1 and 1000")
}
return nil