@nuskin/ns-product-lib
Advanced tools
Comparing version 2.18.0 to 2.19.0
{ | ||
"name": "@nuskin/ns-product-lib", | ||
"version": "2.18.0", | ||
"version": "2.19.0", | ||
"description": "This project contains shared Product models and code between the backend and frontend.", | ||
@@ -25,3 +25,3 @@ "main": "src/index.js", | ||
"@nuskin/ns-util": "4.5.4", | ||
"@nuskin/product-lib": "2.2.0", | ||
"@nuskin/product-lib": "2.2.1", | ||
"axios": "1.6.7", | ||
@@ -28,0 +28,0 @@ "axios-mock-adapter": "1.21.2", |
@@ -554,4 +554,7 @@ const ProductStatus = require("../models/productStatus"); | ||
const parsedPricing = JSON.parse(product.pricingJson) | ||
const promotion = parsedPricing.promotion | ||
let promotion = parsedPricing.promotion | ||
if (promotion && promotion.length) { | ||
if (promotion.length > 1) { | ||
promotion = promotion.filter(p=>p.message !== 'Bundle discount') | ||
} | ||
const offerId = promotion[0].offerId || 'EQPROMO' | ||
@@ -558,0 +561,0 @@ return { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127822
3752