tango-app-api-store-builder 1.0.0-beta-156 → 1.0.0-beta-157
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
|
@@ -7400,7 +7400,7 @@ export async function migrateCrestv1( req, res ) {
|
|
|
7400
7400
|
clientId: '11',
|
|
7401
7401
|
$and: [
|
|
7402
7402
|
{ storeName: req.body.storeName },
|
|
7403
|
-
// { storeName: { $in: [
|
|
7403
|
+
// { storeName: { $in: [ 'LKST1324', 'LKST495' ] } },
|
|
7404
7404
|
// { storeName: { $nin: [ 'LKST98', 'LKST1193' ] } },
|
|
7405
7405
|
],
|
|
7406
7406
|
};
|
|
@@ -7430,15 +7430,15 @@ export async function migrateCrestv1( req, res ) {
|
|
|
7430
7430
|
|
|
7431
7431
|
const existingPlanogram = await planoService.findOne( { storeName: storeData.storeName } );
|
|
7432
7432
|
|
|
7433
|
-
if ( existingPlanogram ) {
|
|
7434
|
-
|
|
7433
|
+
// if ( existingPlanogram ) {
|
|
7434
|
+
// const checkTaskSubmitted = await planoTaskService.findOne( { planoId: existingPlanogram.toObject()._id } );
|
|
7435
7435
|
|
|
7436
|
-
|
|
7436
|
+
// const checkTaskCreated = await processedTaskService.findOne( { storeName: storeData.storeName, date_string: dayjs().format( 'YYYY-MM-DD' ), isPlano: true } );
|
|
7437
7437
|
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
}
|
|
7438
|
+
// if ( checkTaskSubmitted || checkTaskCreated ) {
|
|
7439
|
+
// continue;
|
|
7440
|
+
// }
|
|
7441
|
+
// }
|
|
7442
7442
|
|
|
7443
7443
|
|
|
7444
7444
|
if ( existingPlanogram?.toObject()?._id && mongoose.Types.ObjectId.isValid( existingPlanogram?.toObject()?._id ) ) {
|
|
@@ -1467,7 +1467,7 @@ export async function updateMissing( req, res ) {
|
|
|
1467
1467
|
|
|
1468
1468
|
await Promise.all(
|
|
1469
1469
|
productMappings.map( async ( mapping ) => {
|
|
1470
|
-
const productData = productMap.get( mapping
|
|
1470
|
+
const productData = productMap.get( mapping?.productId?.toString() );
|
|
1471
1471
|
if ( !productData ) {
|
|
1472
1472
|
return { ...mapping.toObject(), status: '' };
|
|
1473
1473
|
}
|