tango-app-api-analysis-zone 3.0.0-alpha.36 → 3.0.0-alpha.37

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-analysis-zone",
3
- "version": "3.0.0-alpha.36",
3
+ "version": "3.0.0-alpha.37",
4
4
  "description": "zone Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -332,16 +332,17 @@ export const zoneInteractionTable459 = async ( req, res ) => {
332
332
  if ( resultData ) {
333
333
  if ( resultData.status_code == '200' ) {
334
334
  if ( reqestData.export ) {
335
- if ( resultData.average.length>0 ) {
335
+ if ( resultData.data.length>0 ) {
336
336
  const exportdata = [];
337
- resultData.average.forEach( ( element ) => {
337
+ resultData.data.forEach( ( element ) => {
338
338
  exportdata.push( {
339
- 'Zone Name': element.zone_name || '--',
340
339
  'Store Id': element.store_id || '--',
341
- 'Avg Time Spent': element.avg_time_spent || '--',
340
+ 'Date': element.date || '--',
341
+ 'Zone Name': element.zone_name || '--',
342
342
  'Hour': element.hour || '--',
343
- 'Min Time Spent': element.min_time_spent || '--',
344
343
  'Footfall': element.Footfall || '--',
344
+ 'Avg Time Spent': element.avg_time_spent || '--',
345
+ 'Min Time Spent': element.min_time_spent || '--',
345
346
  'Max Time Spent': element.max_time_spent || '--',
346
347
  } );
347
348
  } );