@dhyasama/totem-models 7.53.0 → 7.53.2

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
@@ -482,9 +482,9 @@ module.exports = function(mongoose, config) {
482
482
  if(!snapshot) return;
483
483
 
484
484
  var isManagedServices = snapshot.managedServices;
485
- var isSubmitted = !_.isEmpty(snapshot.submittedOn);
486
- var isReviewed = !_.isEmpty(snapshot.reviewedOn);
487
- var isRejected = !_.isEmpty(snapshot.rejection);
485
+ var isSubmitted = snapshot.submittedOn;
486
+ var isReviewed = snapshot.reviewedOn;
487
+ var isRejected = !snapshot.rejection;
488
488
 
489
489
  // no uuid means the data was captured from the google sheet
490
490
  if((!snapshot.uuid) || (!isManagedServices && isSubmitted) || (isManagedServices && isReviewed)) {
@@ -514,7 +514,7 @@ module.exports = function(mongoose, config) {
514
514
  if(isManagedServices && isSubmitted && !isRejected) snapshot.action = 'Review';
515
515
  else if(isManagedServices && isSubmitted && isRejected) snapshot.action = 'Rejected';
516
516
  else if(latestReminder.sentOn) snapshot.action = latestReminder.status;
517
- else snapshot.action = snapsot.notifications.company.initial.status;
517
+ else snapshot.action = snapshot.notifications.company.initial.status;
518
518
  }
519
519
 
520
520
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.53.0",
3
+ "version": "7.53.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",