@dhyasama/totem-models 1.17.2 → 1.17.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.
Files changed (2) hide show
  1. package/lib/Round.js +4 -0
  2. package/package.json +1 -1
package/lib/Round.js CHANGED
@@ -816,6 +816,10 @@ module.exports = function(mongoose, config) {
816
816
  if (mostRecentInvestment.closingDate) doc.closingDate = mostRecentInvestment.closingDate;
817
817
  }
818
818
 
819
+ doc.vehicles = _.filter(doc.vehicles, function(v) {
820
+ return v.investments.length >= 1;
821
+ });
822
+
819
823
  });
820
824
 
821
825
  return next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.17.2",
3
+ "version": "1.17.3",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",