tango-app-api-infra 3.8.1-beta.41 → 3.8.1-beta.42
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
|
@@ -1453,6 +1453,10 @@ export async function hourWiseDownstores( req, res ) {
|
|
|
1453
1453
|
result.push( storedata[0] );
|
|
1454
1454
|
}
|
|
1455
1455
|
if ( req.body.export && result.length > 0 ) {
|
|
1456
|
+
if ( req.body.infrafilterIssue == 'Live Stores' || req.body.infrafilterIssue == 'Total Stores' ) {
|
|
1457
|
+
result.forEach( ( obj ) => delete obj.PrimaryIssue );
|
|
1458
|
+
}
|
|
1459
|
+
console.log( result );
|
|
1456
1460
|
await download( result, res );
|
|
1457
1461
|
return;
|
|
1458
1462
|
}
|