@dhyasama/totem-models 7.53.4 → 7.53.5

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
@@ -299,8 +299,8 @@ module.exports = function(mongoose, config) {
299
299
  });
300
300
 
301
301
  var hasRecipients = snapshot.notifications.company.sendTo.length > 0;
302
- var hasSendOnLessThanNow = !_.isEmpty(sendOnLessThanNow);
303
- var hasNotBeenSentTo = !sendOnLessThanNow.sentOn;
302
+ var hasSendOnLessThanNow = sendOnLessThanNow;
303
+ var hasNotBeenSentTo = sendOnLessThanNow && !sendOnLessThanNow.sentOn;
304
304
 
305
305
  return hasRecipients && hasSendOnLessThanNow && hasNotBeenSentTo;
306
306
 
@@ -342,8 +342,8 @@ module.exports = function(mongoose, config) {
342
342
  });
343
343
 
344
344
  var hasRecipients = snapshot.notifications.company.sendTo.length > 0;
345
- var hasSendOnLessThanNow = !_.isEmpty(sendOnLessThanNow);
346
- var hasNotBeenSentTo = !sendOnLessThanNow.sentOn;
345
+ var hasSendOnLessThanNow = sendOnLessThanNow;
346
+ var hasNotBeenSentTo = sendOnLessThanNow && !sendOnLessThanNow.sentOn;
347
347
 
348
348
  return hasRecipients && hasSendOnLessThanNow && hasNotBeenSentTo;
349
349
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.53.4",
3
+ "version": "7.53.5",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",