@infrab4a/connect-angular 4.17.3-beta.10 → 4.17.3-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2022,7 +2022,7 @@ class CouponService {
|
|
|
2022
2022
|
throw 'Cupom inválido.';
|
|
2023
2023
|
if (coupon?.beginAt && coupon?.beginAt.getTime() > new Date().getTime())
|
|
2024
2024
|
throw 'Cupom inválido.';
|
|
2025
|
-
if (coupon?.expiresIn && coupon?.expiresIn.getTime() < new Date().getTime())
|
|
2025
|
+
if (coupon?.expiresIn && (coupon?.expiresIn).getTime() < new Date().getTime())
|
|
2026
2026
|
throw 'Cupom expirado.';
|
|
2027
2027
|
const isInShop = coupon.shopAvailability === Shops.ALL || coupon.shopAvailability === this.defaultShop;
|
|
2028
2028
|
if (!isInShop)
|