@swan-admin/swan-ai-measurements 1.0.35 → 1.0.36

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tryOn.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/tryOn.js CHANGED
@@ -107,7 +107,7 @@ class TryOn {
107
107
  }
108
108
  return new Promise(async (resolve, reject) => {
109
109
  try {
110
- const url = `${APP_AUTH_BASE_URL}${API_ENDPOINTS.TRY_ON}/?scan_id=${id}&store_url=${shopDomain}&product_name=${productName}`;
110
+ const url = `${APP_AUTH_BASE_URL}${API_ENDPOINTS.TRY_ON}/?scan_id=${userId}&store_url=${shopDomain}&product_name=${productName}`;
111
111
  const res = await axios.post(url);
112
112
  if (res?.data?.tryOnProcessStatus === "failed") {
113
113
  TryOn.disconnectSocket();