tango-app-api-infra 3.9.5-vms.97 → 3.9.5-vms.99

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.9.5-vms.97",
3
+ "version": "3.9.5-vms.99",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -581,7 +581,7 @@ export async function tangoReviewAccuracyClosedTicket( req, res ) {
581
581
  createdByUserName: req?.user?.userName,
582
582
  createdByRole: req?.user?.role,
583
583
  comments: inputData?.comments || '',
584
- subComments: inputData?.subComments ||'',
584
+ subComments: inputData?.subComment ||'',
585
585
  } ) );
586
586
 
587
587
  const temp2 = record.mappingInfo
@@ -589,7 +589,7 @@ export async function tangoReviewAccuracyClosedTicket( req, res ) {
589
589
  .map( ( item ) => ( {
590
590
  ...item,
591
591
  comments: inputData?.comments || '',
592
- subComments: inputData?.subComments ||'',
592
+ subComments: inputData?.subComment ||'',
593
593
  } ) );
594
594
 
595
595
  record.mappingInfo = [ ...ticketData?.[0]?._source?.mappingInfo.slice( 0, -2 ),
@@ -702,7 +702,7 @@ export async function ticketCreation( req, res, next ) {
702
702
  await bulkUpdate( bulkUpdateBody ); // Optionally use a dedicated bulk helper if available
703
703
  }
704
704
 
705
- if ( record.status = 'Closed' ) {
705
+ if ( record.status === 'Closed' ) {
706
706
  const query = {
707
707
  storeId: inputData?.storeId,
708
708
  isVideoStream: true,
@@ -1508,7 +1508,7 @@ export async function ticketReview( req, res, next ) {
1508
1508
  const insertResult = await updateOpenSearchData( openSearch.footfallDirectory, id, { doc: record } );
1509
1509
 
1510
1510
  if ( insertResult && insertResult.statusCode === 201 || insertResult.statusCode === 200 ) {
1511
- if ( record.status = 'Closed' ) {
1511
+ if ( record.status === 'Closed' ) {
1512
1512
  const query = {
1513
1513
  storeId: inputData?.storeId,
1514
1514
  isVideoStream: true,
@@ -2218,7 +2218,7 @@ export async function ticketApprove( req, res, next ) {
2218
2218
 
2219
2219
 
2220
2220
  if ( insertResult && ( insertResult.statusCode === 201 || insertResult.statusCode === 200 ) ) {
2221
- if ( record.status = 'Closed' ) {
2221
+ if ( record.status === 'Closed' ) {
2222
2222
  const query = {
2223
2223
  storeId: inputData?.storeId,
2224
2224
  isVideoStream: true,