tango-app-api-infra 3.9.5-vms.73 → 3.9.5-vms.74

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.73",
3
+ "version": "3.9.5-vms.74",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -774,7 +774,7 @@ export async function ticketSummary( req, res ) {
774
774
  let result = '';
775
775
  const userInfo = req.user;
776
776
  const ticketsFeature = userInfo?.rolespermission?.some( ( f ) => f.featureName === 'FootfallDirectory' && ( f.modules.find( ( m ) => m.name == 'reviewer' && ( m.isAdd == true || m.isEdit == true ) ) ) );
777
-
777
+ // const ticketsApproveFeature = userInfo?.rolespermission?.some( ( f ) => f.featureName === 'FootfallDirectory' && ( f.modules.find( ( m ) => m.name == 'approver' && ( m.isAdd == true || m.isEdit == true ) ) ) );
778
778
  if ( req.user.userType == 'tango' ) {
779
779
  result = {
780
780
  totalTickets: 0,
@@ -2701,15 +2701,28 @@ export async function openTicketList( req, res ) {
2701
2701
  },
2702
2702
  },
2703
2703
  {
2704
- term: {
2705
- 'mappingInfo.type': inputData.type,
2706
- },
2707
- },
2708
- {
2709
- term: {
2710
- 'mappingInfo.status.keyword': 'Open',
2704
+ nested: {
2705
+ path: 'mappingInfo',
2706
+ query: {
2707
+ bool: {
2708
+ must: [
2709
+ {
2710
+ term: {
2711
+ 'mappingInfo.type': inputData.type,
2712
+ },
2713
+ },
2714
+ {
2715
+ term: {
2716
+ 'mappingInfo.status': 'Open',
2717
+ },
2718
+ },
2719
+
2720
+ ],
2721
+ },
2722
+ },
2711
2723
  },
2712
2724
  },
2725
+
2713
2726
  {
2714
2727
  range: {
2715
2728
  dateString: {