tango-app-api-infra 3.0.78-dev → 3.0.80-dev
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-infra",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.80-dev",
|
|
4
4
|
"description": "infra",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"nodemon": "^3.1.0",
|
|
28
28
|
"swagger-ui-express": "^5.0.0",
|
|
29
29
|
"tango-api-schema": "^2.0.101",
|
|
30
|
-
"tango-app-api-middleware": "^1.0.
|
|
30
|
+
"tango-app-api-middleware": "^1.0.68-dev",
|
|
31
31
|
"winston": "^3.12.0",
|
|
32
32
|
"winston-daily-rotate-file": "^5.0.0"
|
|
33
33
|
},
|
|
@@ -377,18 +377,6 @@ export async function workHistory( req, res ) {
|
|
|
377
377
|
{ 'issueClosedDate': { $lte: date.end } },
|
|
378
378
|
],
|
|
379
379
|
|
|
380
|
-
},
|
|
381
|
-
},
|
|
382
|
-
);
|
|
383
|
-
} else if ( req.body.dateFilter === 'issueDate' ) {
|
|
384
|
-
query.push(
|
|
385
|
-
{
|
|
386
|
-
$match: {
|
|
387
|
-
$and: [
|
|
388
|
-
{ 'issueDate': { $gte: date.start } },
|
|
389
|
-
{ 'issueDate': { $lte: date.end } },
|
|
390
|
-
],
|
|
391
|
-
|
|
392
380
|
},
|
|
393
381
|
},
|
|
394
382
|
);
|
|
@@ -423,7 +411,6 @@ export async function workHistory( req, res ) {
|
|
|
423
411
|
storeName: '$basicDetails.storeName',
|
|
424
412
|
clientId: '$basicDetails.clientId',
|
|
425
413
|
clientName: '$basicDetails.clientName',
|
|
426
|
-
issueType: 1,
|
|
427
414
|
issueDate: { $dateToString: { format: '%Y-%m-%d', date: '$createdAt' } },
|
|
428
415
|
issueClosedDate: { $dateToString: { format: '%Y-%m-%d', date: '$issueClosedDate' } },
|
|
429
416
|
issueIdentifiedDate: { $dateToString: { format: '%Y-%m-%d', date: '$ticketDetails.issueIdentifiedDate' } },
|
|
@@ -453,7 +440,6 @@ export async function workHistory( req, res ) {
|
|
|
453
440
|
$project: {
|
|
454
441
|
storeId: 1,
|
|
455
442
|
storeName: 1,
|
|
456
|
-
issueType: 1,
|
|
457
443
|
clientId: 1,
|
|
458
444
|
clientName: 1,
|
|
459
445
|
issueDate: 1,
|
|
@@ -466,20 +452,13 @@ export async function workHistory( req, res ) {
|
|
|
466
452
|
infraIssue: { $ifNull: [ '$primaryIssue.reasons.primaryIssue', '' ] },
|
|
467
453
|
},
|
|
468
454
|
} );
|
|
469
|
-
if ( req.body.issueFilter && req.body.issueFilter.length>0
|
|
455
|
+
if ( req.body.issueFilter && req.body.issueFilter.length>0 ) {
|
|
470
456
|
query.push( {
|
|
471
457
|
$match: {
|
|
472
458
|
infraIssue: { $in: req.body.issueFilter },
|
|
473
459
|
},
|
|
474
460
|
} );
|
|
475
461
|
}
|
|
476
|
-
if ( req.body.issueFilter && req.body.issueFilter.length>0&&req.body.issueType==='dataMismatch' ) {
|
|
477
|
-
query.push( {
|
|
478
|
-
$match: {
|
|
479
|
-
issueType: { $in: req.body.issueFilter },
|
|
480
|
-
},
|
|
481
|
-
} );
|
|
482
|
-
}
|
|
483
462
|
if ( req.body.searchValue && req.body.searchValue !== '' ) {
|
|
484
463
|
query.push( {
|
|
485
464
|
$match: {
|