@dhyasama/totem-models 7.55.1 → 7.56.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
@@ -409,11 +409,11 @@ module.exports = function(mongoose, config) {
409
409
  _.each(results, function(result) {
410
410
  _.each(result.snapshots, function(snapshot) {
411
411
 
412
- var bool = snapshot.managedServices;
413
- bool = bool && snapshot.submittedOn;
414
- bool = bool && !snapshot.reviewedOn;
412
+ var isManagedServices = snapshot.managedServices;
413
+ var isSubmitted = snapshot.submittedOn;
414
+ var isNotReviewed = !snapshot.reviewedOn;
415
415
 
416
- if(bool) {
416
+ if(isManagedServices && isSubmitted && isNotReviewed) {
417
417
  snapshots.push({
418
418
  organization: result.organization.name,
419
419
  snapshot: snapshot
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.55.1",
3
+ "version": "7.56.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",