shuttlepro-shared 1.3.75 → 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 +2 -1
- package/package.json +1 -1
package/models/Product.js
CHANGED
|
@@ -171,7 +171,8 @@ const transformProductData = async (product) => {
|
|
|
171
171
|
const updateNewProduct = async (doc, next) => {
|
|
172
172
|
try {
|
|
173
173
|
// Skip if document is marked as deleted
|
|
174
|
-
|
|
174
|
+
console.log("doc", doc);
|
|
175
|
+
if (doc?.isDeleted) return;
|
|
175
176
|
|
|
176
177
|
// Transform and upsert product data
|
|
177
178
|
const newProductData = await transformProductData(doc);
|