@dhyasama/totem-models 1.26.1 → 1.26.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.
@@ -176,6 +176,11 @@ module.exports = function(mongoose, config) {
176
176
 
177
177
  /////////////////////
178
178
 
179
+ LimitedPartner.virtual('totalCommitted').get(function () {
180
+ var self = this;
181
+ return _.reduce(self.fundsInvested, function(memo, fund) { return memo + fund.committed; }, 0);
182
+ });
183
+
179
184
  LimitedPartner.virtual('email.primary').get(function () {
180
185
  var primary = _.find(this.contact.email, function(email) {
181
186
  return email.primary;
package/lib/List.js CHANGED
@@ -116,7 +116,7 @@ module.exports = function(mongoose, config) {
116
116
  'customer': config.CUSTOMER_ID
117
117
  })
118
118
  .populate('createdBy', 'name avatarUrl')
119
- .populate('limitedPartners', 'name logoUrl')
119
+ .populate('limitedPartners', 'name logoUrl fundsInvested')
120
120
  .populate('organizations', 'name logoUrl')
121
121
  .populate('people', 'name title avatarUrl contact')
122
122
  .exec(cb);
@@ -657,7 +657,7 @@ module.exports = function(mongoose, config) {
657
657
  .populate('related', 'name logoUrl')
658
658
  .populate('chairs.first', 'name avatarUrl title')
659
659
  .populate('chairs.second', 'name avatarUrl title')
660
- .populate('funds', 'name hexColorCode')
660
+ .populate('funds', 'name hexColorCode abbreviation')
661
661
  .deepPopulate([
662
662
  'people.person.sources.person',
663
663
  'people.person.calendarEventSummaries.attendees.internal',
@@ -799,7 +799,7 @@ module.exports = function(mongoose, config) {
799
799
  .populate('related', 'name logoUrl')
800
800
  .populate('chairs.first', 'name avatarUrl title')
801
801
  .populate('chairs.second', 'name avatarUrl title')
802
- .populate('funds', 'name hexColorCode closeDate')
802
+ .populate('funds', 'name hexColorCode abbreviation closeDate')
803
803
  .populate('operating.acquired.public.by', 'name logoUrl')
804
804
  .populate('operating.acquired.private.by', 'name logoUrl')
805
805
  .populate(lpPopulateOptions)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.26.1",
3
+ "version": "1.26.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",