tango-app-api-infra 3.0.18-dev → 3.0.19-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
|
@@ -132,13 +132,17 @@ export async function viewTicket( req, res ) {
|
|
|
132
132
|
}
|
|
133
133
|
export async function AlertTicketReply( req, res ) {
|
|
134
134
|
try {
|
|
135
|
-
req.body.ticketActivity = req.body.ticketActivity.filter( ( data ) => data.
|
|
135
|
+
req.body.ticketActivity = req.body.ticketActivity.filter( ( data ) => data.actionType != 'statusCheck' );
|
|
136
136
|
req.body.ticketActivity.push( {
|
|
137
137
|
actionType: 'statusCheckReply',
|
|
138
|
-
actionBy: '
|
|
138
|
+
actionBy: 'User',
|
|
139
139
|
statusCheckReply: req.body.statusCheckReply,
|
|
140
140
|
hibernationDays: req.body.hibernationDays,
|
|
141
141
|
} );
|
|
142
|
+
req.body.ticketActivity.push( {
|
|
143
|
+
actionType: 'statusCheckMonitor',
|
|
144
|
+
actionBy: 'Tango',
|
|
145
|
+
} );
|
|
142
146
|
await updateOneTangoTicket( { ticketId: req.body.ticketId }, { 'ticketActivity': req.body.ticketActivity } );
|
|
143
147
|
if ( req.body.hibernationDays ) {
|
|
144
148
|
req.body.hibernationDays = dayjs().add( req.body.hibernationDays, 'days' ).format( 'YYYY-MM-DD' );
|
|
@@ -142,7 +142,9 @@ export async function assigntoUser( req, res ) {
|
|
|
142
142
|
}
|
|
143
143
|
export async function updateRefreshTicket( req, res ) {
|
|
144
144
|
try {
|
|
145
|
-
|
|
145
|
+
for ( let ticket of req.body.TicketList ) {
|
|
146
|
+
await updateOneTangoTicket( { ticketId: ticket.ticketId }, { 'ticketDetails.ticketType': 'refreshticket' } );
|
|
147
|
+
}
|
|
146
148
|
res.sendSuccess( 'updated Successfully' );
|
|
147
149
|
} catch ( error ) {
|
|
148
150
|
logger.error( { error: error, function: 'updateRefreshTicket' } );
|