@nuskin/ns-product-lib
Advanced tools
Comparing version 2.15.0-cx24-6364.1 to 2.15.0-cx24-6364.2
{ | ||
"name": "@nuskin/ns-product-lib", | ||
"version": "2.15.0-cx24-6364.1", | ||
"version": "2.15.0-cx24-6364.2", | ||
"description": "This project contains shared Product models and code between the backend and frontend.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -27,7 +27,10 @@ "use strict"; | ||
const config = (await getConfiguration(['Equinox_Markets'])).Equinox_Markets; | ||
console.log('-configs-',config); | ||
if (config.active) { | ||
return (config.MySite_graphql_active_list.includes[market]) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromEquinox(skus, localeMarket, config) | ||
return (config.MySite_graphql_active_list.includes(market)) ? | ||
await getProduct(skus[0], market, locale, config) : | ||
await this.getProductFromEquinox(skus, localeMarket, config) | ||
} else { | ||
return (config.MySite_graphql_active_list.includes[market]) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromLegacy(skus, localeMarket); | ||
return (config.MySite_graphql_active_list.includes(market)) ? | ||
await getProduct(skus[0], market, locale, config) : | ||
await this.getProductFromLegacy(skus, localeMarket); | ||
} | ||
@@ -34,0 +37,0 @@ |
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
4817
143018