@dhyasama/totem-models 7.50.0 → 7.50.1

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
@@ -363,7 +363,7 @@ module.exports = function(mongoose, config) {
363
363
  var isRejected = !_.isEmpty(snapshot.rejection);
364
364
 
365
365
  // no uuid means the data was captured from the google sheet
366
- if((!snapshot.uuid) || (!isManagedServices && isSubmitted) || (managedServices && isReviewed)) {
366
+ if((!snapshot.uuid) || (!isManagedServices && isSubmitted) || (isManagedServices && isReviewed)) {
367
367
  snapshot.status = 'Completed';
368
368
  snapshot.action = null;
369
369
  }
@@ -389,8 +389,8 @@ module.exports = function(mongoose, config) {
389
389
 
390
390
  else {
391
391
  snapshot.status = 'In Progress';
392
- if(managedServices && isSubmitted && !isRejected) snapshot.action = 'Review';
393
- else if(managedServices && isSubmitted && isRejected) snapshot.action = 'Rejected';
392
+ if(isManagedServices && isSubmitted && !isRejected) snapshot.action = 'Review';
393
+ else if(isManagedServices && isSubmitted && isRejected) snapshot.action = 'Rejected';
394
394
  else if(latestSentOn.status) snapshot.action = latestSentOn.status;
395
395
  }
396
396
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.50.0",
3
+ "version": "7.50.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",