tango-app-api-store-builder 1.0.0-beta-87 → 1.0.0-beta-88
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
|
@@ -4341,7 +4341,7 @@ export async function updateCrestPlanogram( req, res ) {
|
|
|
4341
4341
|
let staticToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzQ1NTE3MjQxLCJpYXQiOjE3NDU1MTM2NDEsImp0aSI6Ijg3MWVlNTA3ODY2OTQ5OTVhMTQ0YTk4NzQyNzY0MzEzIiwidXNlcl9pZCI6MTA4NSwiaWQiOjEwODUsImlzX21lZXNlZWtfYWNjb3VudCI6ZmFsc2UsImN1c3RvbWVyX2dyb3VwIjozOTgsImxpY2VuY2Vfc2NvcGVzIjpbeyJyZXNvdXJjZV9zZXQiOiJwcF9zZXQiLCJzY29wZV9yb2xlIjoiY29udHJpYnV0b3IifSx7InJlc291cmNlX3NldCI6ImRwX3NldCIsInNjb3BlX3JvbGUiOiJjb250cmlidXRvciJ9LHsicmVzb3VyY2Vfc2V0IjoiZGZfc2V0Iiwic2NvcGVfcm9sZSI6ImNvbnRyaWJ1dG9yIn0seyJyZXNvdXJjZV9zZXQiOiJkZWZhdWx0X3NldCIsInNjb3BlX3JvbGUiOiJjb250cmlidXRvciJ9XX0.eGzTMGwwstr13M0Hu1Ls5-gkE_oSPMJJBL2wgygT6Ac';
|
|
4342
4342
|
|
|
4343
4343
|
async function fetchStoreData( store, bearerToken, res ) {
|
|
4344
|
-
const payload = JSON.stringify( { store_id: store.toObject().storeName } );
|
|
4344
|
+
const payload = JSON.stringify( { store_id: store.toObject().storeName?.toUpperCase() } );
|
|
4345
4345
|
|
|
4346
4346
|
try {
|
|
4347
4347
|
const response = await fetch( layoutApiUrl, {
|
|
@@ -5363,7 +5363,7 @@ export async function updateCrestPlanogram( req, res ) {
|
|
|
5363
5363
|
|
|
5364
5364
|
const now = Date.now();
|
|
5365
5365
|
const elapsedMinutes = ( now - startTime ) / 1000 / 60;
|
|
5366
|
-
console.log( `Store name: ${storeData.storeName}, Iteration ${i + 1}: total elapsed time = ${elapsedMinutes.toFixed( 2 )} minutes` );
|
|
5366
|
+
console.log( `Store name: ${storeData.storeName}, Iteration ${i + 1}/${storeList?.length}: total elapsed time = ${elapsedMinutes.toFixed( 2 )} minutes` );
|
|
5367
5367
|
}
|
|
5368
5368
|
|
|
5369
5369
|
res.sendSuccess( 'Updated Successfully' );
|
|
@@ -553,7 +553,7 @@ export async function storeFixturesv1( req, res ) {
|
|
|
553
553
|
{
|
|
554
554
|
$or: [
|
|
555
555
|
{ _id: { $in: planoIds } },
|
|
556
|
-
{
|
|
556
|
+
{ storeId: { $in: req.body.id } },
|
|
557
557
|
],
|
|
558
558
|
},
|
|
559
559
|
{ storeId: 1, storeName: 1, planoId: '$_id', productResolutionLevel: 1, scanType: 1, clientId: 1, validateShelfSections: 1 },
|