@dhyasama/totem-models 6.25.0 → 6.25.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.
@@ -196,7 +196,7 @@ module.exports = function(mongoose, config) {
196
196
 
197
197
  LimitedPartner.virtual('totalCommitted').get(function () {
198
198
  var self = this;
199
- return _.reduce(self.fundsInvested, function(memo, fund) { return memo + fund.committed; }, 0);
199
+ return _.reduce(self.fundsInvested, function(memo, fund) { return memo + (fund.committed > 0 ? fund.committed : 0); }, 0);
200
200
  });
201
201
 
202
202
  LimitedPartner.virtual('email.primary').get(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.25.0",
3
+ "version": "6.25.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",