@dhyasama/totem-models 7.2.2 → 7.2.3

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
@@ -387,7 +387,7 @@ module.exports = function(mongoose, config) {
387
387
  else if(snapshot.notifications.company.initial.sendOn) {
388
388
 
389
389
  var isScheduled = moment().isBefore(moment(snapshot.notifications.company.initial.sendOn));
390
- var isOverdue = moment().subtract(30, 'd').isAfter(snapshot.notifications.company.reminder.sendOn || snapshot.notifications.company.initial.sendOn);
390
+ var isOverdue = moment().subtract(30, 'd').isAfter(moment(snapshot.notifications.company.reminder.sendOn || snapshot.notifications.company.initial.sendOn));
391
391
 
392
392
  if(isScheduled) snapshot.status = 'Scheduled';
393
393
  else if(isOverdue) snapshot.status = 'Overdue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",