tango-app-api-infra 3.1.34-beta.22 → 3.1.34-beta.23

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.1.34-beta.22",
3
+ "version": "3.1.34-beta.23",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -345,7 +345,6 @@ export async function emailUserList( req, res ) {
345
345
  '$match': {
346
346
  '$expr': {
347
347
  $and: [
348
- { '$eq': [ '$clientId', '$$clientId' ] },
349
348
  { '$eq': [ '$clientId', '$$clientId' ] },
350
349
  { '$eq': [ '$emailAlert.infra', true ] },
351
350
  ],
@@ -508,7 +507,7 @@ export async function emailUserList( req, res ) {
508
507
  }
509
508
  }
510
509
  } else if ( user.ticketConfigs.infraReport.type && user.ticketConfigs.infraReport.type === 'defined' ) {
511
- let times = generateTimeIntervals( user.ticketConfigs.infraReport.startTime, user.ticketConfigs.infraReport.endTime, user.ticketConfigs.infraReport.interval );
510
+ let times =await generateTimeIntervals( user.ticketConfigs.infraReport.startTime, user.ticketConfigs.infraReport.endTime, user.ticketConfigs.infraReport.interval );
512
511
  // console.log( times );
513
512
  for ( let store of user.storeList ) {
514
513
  const result = await checkStoreTimezoneMatchesInterval( times, store.storeProfile.timeZone );