shuttlepro-shared 1.3.74 → 1.3.76

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/models/Product.js CHANGED
@@ -152,6 +152,10 @@ const transformProductData = async (product) => {
152
152
  costPrice: p?.costPrice || 0,
153
153
  salePrice: p?.salePrice || 0,
154
154
  quantity: p?.quantity || 0,
155
+ presentedName: p?.presentedName || "",
156
+ presentedCurrency: p?.presentedCurrency || "",
157
+ presentedCurrencySymbol: p?.presentedCurrencySymbol || "",
158
+ websiteId: p?.websiteId || null,
155
159
  }))
156
160
  : [],
157
161
  })) || [],
@@ -167,7 +171,8 @@ const transformProductData = async (product) => {
167
171
  const updateNewProduct = async (doc, next) => {
168
172
  try {
169
173
  // Skip if document is marked as deleted
170
- if (doc.isDeleted) return;
174
+ console.log("doc", doc);
175
+ if (doc?.isDeleted) return;
171
176
 
172
177
  // Transform and upsert product data
173
178
  const newProductData = await transformProductData(doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.3.74",
3
+ "version": "1.3.76",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {