@dhyasama/totem-models 1.11.0 → 1.12.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.
@@ -466,9 +466,9 @@ module.exports = function(mongoose, config) {
466
466
 
467
467
  var self = this;
468
468
 
469
- if (self.closed) return 'Dead';
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
  });
@@ -724,6 +724,8 @@ module.exports = function(mongoose, config) {
724
724
  .populate('chairs.first', 'name avatarUrl title')
725
725
  .populate('chairs.second', 'name avatarUrl title')
726
726
  .populate('funds', 'name hexColorCode closeDate')
727
+ .populate('operating.acquired.public.by', 'name logoUrl')
728
+ .populate('operating.acquired.private.by', 'name logoUrl')
727
729
  .deepPopulate([
728
730
  'people.person.sources.person',
729
731
  'people.person.calendarEventSummaries.attendees.internal',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.11.0",
3
+ "version": "1.12.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",