tango-app-api-infra 3.1.34-beta.3 → 3.1.34-beta.5
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-infra",
|
|
3
|
-
"version": "3.1.34-beta.
|
|
3
|
+
"version": "3.1.34-beta.5",
|
|
4
4
|
"description": "infra",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "nodemon --exec \"eslint --fix . && node
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node app.js\""
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=18.10.0"
|
|
@@ -753,7 +753,7 @@ export async function download( data ) {
|
|
|
753
753
|
export async function edgeApplogsCheck( req, res ) {
|
|
754
754
|
try {
|
|
755
755
|
let finalresult = [];
|
|
756
|
-
let ticketList = await findTangoTicket( { 'issueDate': new Date( req.body.issueDate ), '
|
|
756
|
+
let ticketList = await findTangoTicket( { 'issueDate': new Date( req.body.issueDate ), 'status': { $ne: 'closed' }, 'ticketDetails.issueStatus': 'notidentified', 'issueType': 'infra' } );
|
|
757
757
|
for ( let ticket of ticketList ) {
|
|
758
758
|
req.body.date = dayjs( ticket.createdAt ).format( 'YYYY-MM-DD' );
|
|
759
759
|
let errorLog = {
|
|
@@ -20,12 +20,14 @@ export async function userTakeTicket( req, res ) {
|
|
|
20
20
|
assignedClients.push( client.clientId );
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
if ( req.body.clientId.length ===1 ) {
|
|
24
|
+
assignedClients =req.body.clientId;
|
|
25
|
+
}
|
|
23
26
|
let userTicket = '';
|
|
24
27
|
if ( req.body.issueType == 'infra' ) {
|
|
25
28
|
let query = {
|
|
26
29
|
'status': { $ne: 'closed' },
|
|
27
30
|
'issueType': 'infra',
|
|
28
|
-
'ticketDetails.assigntoUser': true,
|
|
29
31
|
'ticketDetails.addressingUser': { $exists: false },
|
|
30
32
|
'ticketDetails.issueStatus': 'notidentified',
|
|
31
33
|
'ticketDetails.addressingClient': { $exists: false },
|
|
@@ -41,6 +43,8 @@ export async function userTakeTicket( req, res ) {
|
|
|
41
43
|
'issueType': 'infra',
|
|
42
44
|
'ticketDetails.ticketType': 'refreshticket',
|
|
43
45
|
'ticketDetails.refreshTicketStatus': 'notidentified',
|
|
46
|
+
'ticketDetails.addressingUser': { $exists: false },
|
|
47
|
+
'ticketDetails.addressingClient': { $exists: false },
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
if ( assignedClients.length > 0 ) {
|
|
@@ -238,6 +242,7 @@ export async function userTicketList( req, res ) {
|
|
|
238
242
|
{ issueStatus: { $in: req.body.filter } },
|
|
239
243
|
{ infraIssue: { $in: req.body.filter } },
|
|
240
244
|
{ issueType: { $in: req.body.filter } },
|
|
245
|
+
{ ticketType: { $in: req.body.filter } },
|
|
241
246
|
],
|
|
242
247
|
},
|
|
243
248
|
} );
|
|
@@ -786,6 +791,7 @@ export async function pendingTicket( req, res ) {
|
|
|
786
791
|
$and: [
|
|
787
792
|
{ 'basicDetails.clientId': { $in: req.body.clientId } },
|
|
788
793
|
{ createdAt: { $lte: date.end } },
|
|
794
|
+
{ 'ticketDetails.addressingUser': { $exists: false } },
|
|
789
795
|
],
|
|
790
796
|
},
|
|
791
797
|
},
|