@nuskin/ns-product-lib 2.14.5 → 2.14.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.14.5",
3
+ "version": "2.14.6",
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": {
@@ -106,10 +106,12 @@ const ProductData = {
106
106
  },
107
107
 
108
108
  getProductFromLegacy: async function (skus, locale) {
109
- const marketConfig = await contentstack.getAEMConfig();
109
+ let marketConfig = await contentstack.getAEMConfig();
110
110
 
111
111
  if (marketConfig === null) {
112
- return null;
112
+ marketConfig = {
113
+ aws_url: "https://testapi.cloud.nuskin.com/"
114
+ }
113
115
  }
114
116
 
115
117
  const lambdaUrl = `${marketConfig.aws_url}/productData/v1`;