@dhyasama/totem-models 11.124.0 → 11.125.0

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/lib/Financials.js CHANGED
@@ -632,7 +632,8 @@ module.exports = function(mongoose, config) {
632
632
  $elemMatch: {
633
633
  'notifications.company.initial.sendTo': { $gt: [] },
634
634
  'notifications.company.initial.sendOn': { $lte: now },
635
- 'notifications.company.initial.sentOn': null
635
+ 'notifications.company.initial.sentOn': null,
636
+ 'status': { $nin: ['Pending', 'Completed', 'Archived'] }
636
637
  }
637
638
  }
638
639
  });
@@ -687,7 +688,8 @@ module.exports = function(mongoose, config) {
687
688
  $elemMatch: {
688
689
  'notifications.company.reminders.sendTo': { $gt: [] },
689
690
  'notifications.company.reminders.sendOn': { $lte: now },
690
- 'notifications.company.reminders.sentOn': null
691
+ 'notifications.company.reminders.sentOn': null,
692
+ 'status': { $nin: ['Pending', 'Completed', 'Archived'] }
691
693
  }
692
694
  }
693
695
  });
@@ -746,7 +748,8 @@ module.exports = function(mongoose, config) {
746
748
  $elemMatch: {
747
749
  'notifications.company.rejections.sendTo': { $gt: [] },
748
750
  'notifications.company.rejections.sendOn': { $lte: now },
749
- 'notifications.company.rejections.sentOn': null
751
+ 'notifications.company.rejections.sentOn': null,
752
+ 'status': { $nin: ['Pending', 'Completed', 'Archived'] }
750
753
  }
751
754
  }
752
755
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "11.124.0",
3
+ "version": "11.125.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",