diff --git a/backend/internal/http/handler/product_handler.go b/backend/internal/http/handler/product_handler.go index ed1f582..385db12 100644 --- a/backend/internal/http/handler/product_handler.go +++ b/backend/internal/http/handler/product_handler.go @@ -227,6 +227,7 @@ func (h *Handler) SearchProducts(w http.ResponseWriter, r *http.Request) { expires := time.Now().AddDate(0, 0, days) filter.ExpiresAfter = &expires } + } if v := r.URL.Query().Get("expires_after"); v != "" { // Also support direct date if needed if t, err := time.Parse("2006-01-02", v); err == nil {