tango-app-api-infra 3.9.5-vms.95 → 3.9.5-vms.96

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.95",
3
+ "version": "3.9.5-vms.96",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -222,7 +222,7 @@ export async function tangoReviewTicket( req, res ) {
222
222
  const getFootfallticketData = await getOpenSearchData( openSearch.footfallDirectory, getTicket );
223
223
  const ticketData = getFootfallticketData?.body?.hits?.hits;
224
224
  logger.info( { ticketData, msg: '...........9' } );
225
- if ( !ticketData || ticketData?.length == 0 ) {
225
+ if ( ( !ticketData || ticketData?.length == 0 ) && inputData?.ticketType !== 'internal' ) {
226
226
  return res.sendError( 'You don’t have any tagged images right now', 400 );
227
227
  }
228
228
 
@@ -556,7 +556,7 @@ export async function tangoReviewAccuracyClosedTicket( req, res ) {
556
556
  const getFootfallticketData = await getOpenSearchData( openSearch.footfallDirectory, getTicket );
557
557
  const ticketData = getFootfallticketData?.body?.hits?.hits;
558
558
 
559
- if ( !ticketData || ticketData?.length == 0 ) {
559
+ if ( ( !ticketData || ticketData?.length == 0 ) && inputData?.ticketType !== 'internal' ) {
560
560
  return res.sendError( 'You don’t have any tagged images right now', 400 );
561
561
  }
562
562