diff --git a/src/docs/src/routes/store/discounts.xml/+server.js b/src/docs/src/routes/store/discounts.xml/+server.js index c8a0de15702..3a49d062ba0 100644 --- a/src/docs/src/routes/store/discounts.xml/+server.js +++ b/src/docs/src/routes/store/discounts.xml/+server.js @@ -60,6 +60,7 @@ xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01 discount.attributes.status === "published" && discount.attributes.is_limited_to_products === false && discount.attributes.is_limited_redemptions === false && + discount.attributes.expires_at !== null && (discount.attributes.starts_at === null || new Date(discount.attributes.starts_at) < new Date()) )