@dhyasama/totem-models 1.12.0 → 1.13.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/LimitedPartner.js +3 -0
- package/lib/Organization.js +2 -2
- package/package.json +1 -1
package/lib/LimitedPartner.js
CHANGED
|
@@ -35,6 +35,8 @@ module.exports = function(mongoose, config) {
|
|
|
35
35
|
|
|
36
36
|
shortName: { type: String, default: '' },
|
|
37
37
|
|
|
38
|
+
related: [{ type: Schema.ObjectId, ref: 'Organization'}],
|
|
39
|
+
|
|
38
40
|
start: { type: String, default: '' },
|
|
39
41
|
|
|
40
42
|
people: [{
|
|
@@ -374,6 +376,7 @@ module.exports = function(mongoose, config) {
|
|
|
374
376
|
query.populate('fundsInvested.fund');
|
|
375
377
|
query.populate('people');
|
|
376
378
|
query.populate('notes');
|
|
379
|
+
query.populate('related', 'name logoUrl');
|
|
377
380
|
query.deepPopulate([
|
|
378
381
|
'people.sources.person',
|
|
379
382
|
'people.calendarEventSummaries.attendees.internal',
|
package/lib/Organization.js
CHANGED
|
@@ -466,9 +466,9 @@ module.exports = function(mongoose, config) {
|
|
|
466
466
|
|
|
467
467
|
var self = this;
|
|
468
468
|
|
|
469
|
-
if (self.
|
|
470
|
-
else if (self.ipo.ticker) return 'IPO';
|
|
469
|
+
if (self.ipo.ticker) return 'IPO';
|
|
471
470
|
else if (self.acquired.by) return 'Acquired';
|
|
471
|
+
else if (self.closed) return 'Dead';
|
|
472
472
|
else return 'Active';
|
|
473
473
|
|
|
474
474
|
});
|