@nuskin/ns-product-lib 2.14.7-cx24-5291.1 → 2.15.0-cx24-6364.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.14.7-cx24-5291.1",
3
+ "version": "2.15.0-cx24-6364.1",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/product.js CHANGED
@@ -697,7 +697,6 @@ const Product = function (productData) {
697
697
 
698
698
  this.division = data.division;
699
699
  this.backOrderDate = data.backOrderDate;
700
- console.log('backOrdered',this.backOrderDate)
701
700
 
702
701
  if (data.agelocme) {
703
702
  this.agelocme = new Agelocme(data.agelocme);
@@ -24,10 +24,11 @@ const ProductData = {
24
24
  const localeMarket = `${locale}_${market}`;
25
25
 
26
26
  const config = (await getConfiguration(['Equinox_Markets'])).Equinox_Markets;
27
+ console.log('-configs-',config);
27
28
  if (config.active) {
28
- return (config.MySite_graphql_active) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromEquinox(skus, localeMarket, config)
29
+ return (config.MySite_graphql_active_list.includes[market]) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromEquinox(skus, localeMarket, config)
29
30
  } else {
30
- return (config.MySite_graphql_active) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromLegacy(skus, localeMarket);
31
+ return (config.MySite_graphql_active_list.includes[market]) ? await getProduct(skus[0], market, locale, config) : await this.getProductFromLegacy(skus, localeMarket);
31
32
  }
32
33
 
33
34
  },