tango-app-api-analysis-traffic 3.8.19 → 3.8.20
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
|
@@ -1078,11 +1078,15 @@ export async function exportRevopTagging( req, res ) {
|
|
|
1078
1078
|
const dateValue = src.dateRange || src.dateString;
|
|
1079
1079
|
const base = {
|
|
1080
1080
|
'Date': dateValue ? dayjs( dateValue ).format( 'DD-MM-YYYY' ) : '',
|
|
1081
|
-
'Timestamp': src.
|
|
1081
|
+
'Timestamp': src.customerInfo?.entryTime || '',
|
|
1082
1082
|
'Customer ID': src.tempId ?? '',
|
|
1083
1083
|
};
|
|
1084
1084
|
|
|
1085
1085
|
if ( exportType === 'purchaser' ) {
|
|
1086
|
+
// only export records tagged as purchaser
|
|
1087
|
+
if ( `${src.revopsType || ''}`.toLowerCase() !== 'purchaser' ) {
|
|
1088
|
+
continue;
|
|
1089
|
+
}
|
|
1086
1090
|
const customer = src.customerInfo || {};
|
|
1087
1091
|
const contactNumber = [ customer.countryCode, customer.mobile ].filter( Boolean ).join( ' ' );
|
|
1088
1092
|
exportData.push( {
|