tango-app-api-infra 3.0.35-dev → 3.0.36-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
|
@@ -429,6 +429,7 @@ export async function storeInfraList( req, res ) {
|
|
|
429
429
|
{
|
|
430
430
|
$project: {
|
|
431
431
|
storeId: 1,
|
|
432
|
+
clientId: 1,
|
|
432
433
|
storeName: 1,
|
|
433
434
|
storeProfile: 1,
|
|
434
435
|
status: 1,
|
|
@@ -446,6 +447,7 @@ export async function storeInfraList( req, res ) {
|
|
|
446
447
|
_id: '$storeId',
|
|
447
448
|
store: { $first: '$_id' },
|
|
448
449
|
storeId: { $first: '$storeId' },
|
|
450
|
+
clientId: { $first: '$clientId' },
|
|
449
451
|
storeName: { $first: '$storeName' },
|
|
450
452
|
status: { $first: '$status' },
|
|
451
453
|
progress: { $first: '$progress' },
|
|
@@ -303,19 +303,21 @@ export async function InfraAlert( req, res, next ) {
|
|
|
303
303
|
statusCheckAlertTime: statusCheckAlertTime,
|
|
304
304
|
} );
|
|
305
305
|
}
|
|
306
|
-
if ( req.body.comment != '' && req.body.secondary.length == 0 ) {
|
|
306
|
+
if ( req.body.comment != '' && !req.body.secondary||req.body.secondary.length == 0 ) {
|
|
307
307
|
let actionBy = '';
|
|
308
308
|
if ( req.user.userType == 'tango' ) {
|
|
309
309
|
actionBy = 'Tango';
|
|
310
310
|
} else if ( req.user.userType == 'client' ) {
|
|
311
311
|
actionBy = 'User';
|
|
312
312
|
}
|
|
313
|
-
req.body.
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
313
|
+
if ( req.body.comment != '' ) {
|
|
314
|
+
req.body.ticketActivity.push( {
|
|
315
|
+
actionType: 'comment',
|
|
316
|
+
actionBy: actionBy,
|
|
317
|
+
IdentifiedBy: req.user.userName,
|
|
318
|
+
comment: req.body.comment,
|
|
319
|
+
} );
|
|
320
|
+
}
|
|
319
321
|
}
|
|
320
322
|
}
|
|
321
323
|
|