tango-app-api-infra 3.9.5-vms.69 → 3.9.5-vms.70
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
|
@@ -211,7 +211,7 @@ export async function tangoReviewTicket( req, res ) {
|
|
|
211
211
|
|
|
212
212
|
const record = {
|
|
213
213
|
|
|
214
|
-
status: 'Closed',
|
|
214
|
+
status: parseInt( inputData?.mappingInfo?.[0]?.revicedPerc || 0 ) < parseInt( getConfig?.footfallDirectoryConfigs?.tangoReview|| 0 ) ? 'Open - Accuracy Issue' : 'Closed',
|
|
215
215
|
revicedFootfall: inputData.mappingInfo?.[0]?.revicedFootfall,
|
|
216
216
|
revicedPerc: inputData.mappingInfo?.[0]?.revicedPerc,
|
|
217
217
|
mappingInfo: ticketData?.[0]?._source?.mappingInfo,
|
|
@@ -374,20 +374,20 @@ export async function tangoReviewTicket( req, res ) {
|
|
|
374
374
|
} );
|
|
375
375
|
}
|
|
376
376
|
// If no review mapping existed, push a new one
|
|
377
|
-
if ( record.mappingInfo.length === 0 ) {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
377
|
+
// if ( record.mappingInfo.length === 0 ) {
|
|
378
|
+
// record.mappingInfo.push( {
|
|
379
|
+
// type: 'tangoreview',
|
|
380
|
+
// mode: inputData.mappingInfo?.mode,
|
|
381
|
+
// revicedFootfall: inputData.mappingInfo?.revicedFootfall,
|
|
382
|
+
// revicedPerc: inputData.mappingInfo?.revicedPerc,
|
|
383
|
+
// count: inputData.mappingInfo?.count,
|
|
384
|
+
// revisedDetail: inputData.mappingInfo?.revisedDetail,
|
|
385
|
+
// status: 'Closed',
|
|
386
|
+
// createdByEmail: req?.user?.email,
|
|
387
|
+
// createdByUserName: req?.user?.userName,
|
|
388
|
+
// createdByRole: req?.user?.role,
|
|
389
|
+
// } );
|
|
390
|
+
// }
|
|
391
391
|
}
|
|
392
392
|
record.mappingInfo.push(
|
|
393
393
|
{
|
|
@@ -1081,7 +1081,7 @@ export async function ticketList( req, res ) {
|
|
|
1081
1081
|
|
|
1082
1082
|
|
|
1083
1083
|
);
|
|
1084
|
-
} else if ( inputData.tangoType !== 'internal' ) {
|
|
1084
|
+
} else if ( req?.user?.userType == 'client' && inputData.tangoType !== 'internal' ) {
|
|
1085
1085
|
searchQuery.query.bool.must.push(
|
|
1086
1086
|
{
|
|
1087
1087
|
term: {
|