tango-app-api-analysis-traffic 3.8.19 → 3.8.21
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
|
@@ -121,6 +121,11 @@ export async function getrevoptagging( req, res ) {
|
|
|
121
121
|
'tempId': req.body.tempId,
|
|
122
122
|
},
|
|
123
123
|
},
|
|
124
|
+
{
|
|
125
|
+
'term': {
|
|
126
|
+
'type.keyword': 'tagging',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
124
129
|
],
|
|
125
130
|
},
|
|
126
131
|
},
|
|
@@ -1078,11 +1083,15 @@ export async function exportRevopTagging( req, res ) {
|
|
|
1078
1083
|
const dateValue = src.dateRange || src.dateString;
|
|
1079
1084
|
const base = {
|
|
1080
1085
|
'Date': dateValue ? dayjs( dateValue ).format( 'DD-MM-YYYY' ) : '',
|
|
1081
|
-
'Timestamp': src.
|
|
1086
|
+
'Timestamp': src.customerInfo?.entryTime || '',
|
|
1082
1087
|
'Customer ID': src.tempId ?? '',
|
|
1083
1088
|
};
|
|
1084
1089
|
|
|
1085
1090
|
if ( exportType === 'purchaser' ) {
|
|
1091
|
+
// only export records tagged as purchaser
|
|
1092
|
+
if ( `${src.revopsType || ''}`.toLowerCase() !== 'purchaser' ) {
|
|
1093
|
+
continue;
|
|
1094
|
+
}
|
|
1086
1095
|
const customer = src.customerInfo || {};
|
|
1087
1096
|
const contactNumber = [ customer.countryCode, customer.mobile ].filter( Boolean ).join( ' ' );
|
|
1088
1097
|
exportData.push( {
|