tango-app-api-payment-subscription 3.0.45-dev → 3.0.47-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-payment-subscription",
3
- "version": "3.0.45-dev",
3
+ "version": "3.0.47-dev",
4
4
  "description": "paymentSubscription",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "nodemon": "^3.1.0",
27
27
  "swagger-ui-express": "^5.0.0",
28
28
  "tango-api-schema": "^2.0.103",
29
- "tango-app-api-middleware": "^1.0.60-dev",
29
+ "tango-app-api-middleware": "^1.0.75-dev",
30
30
  "winston": "^3.12.0",
31
31
  "winston-daily-rotate-file": "^5.0.0"
32
32
  },
@@ -3056,14 +3056,13 @@ export const clientNotificationList = async ( req, res ) => {
3056
3056
  bool: {
3057
3057
  must: [
3058
3058
  { match: { clientId: req.user.clientId } },
3059
- { match: { type: 'notification' } },
3059
+ // { match: { logType: 'notification' } },
3060
3060
  { match: { adminNotification: true } },
3061
3061
  { match: { markasRead: false } },
3062
3062
  ],
3063
3063
  },
3064
3064
  },
3065
- _source: [ 'description', 'alertCta', 'clientId', 'markasRead', 'showPushNotification', 'date', 'title' ],
3066
- stored_fields: [ '_source' ],
3065
+ _source: [ 'logType', 'alertCta', 'clientId', 'markasRead', 'showPushNotification', 'date', 'logSubType' ],
3067
3066
  };
3068
3067
  } else {
3069
3068
  query = {
@@ -3071,14 +3070,13 @@ export const clientNotificationList = async ( req, res ) => {
3071
3070
  bool: {
3072
3071
  must: [
3073
3072
  { match: { clientId: req.user.clientId } },
3074
- { match: { type: 'notification' } },
3073
+ // { match: { type: 'notification' } },
3075
3074
  { match: { clientNotification: true } },
3076
3075
  { match: { markasRead: false } },
3077
3076
  ],
3078
3077
  },
3079
3078
  },
3080
- _source: [ 'description', 'alertCta', 'clientId', 'markasRead', 'showPushNotification', 'date', 'title' ],
3081
- stored_fields: [ '_source' ],
3079
+ _source: [ 'logType', 'alertCta', 'clientId', 'markasRead', 'showPushNotification', 'date', 'logSubType' ],
3082
3080
  };
3083
3081
  }
3084
3082
  let result = await getOpenSearchData( appConfig.opensearch.activityLog, query );