@dhyasama/totem-models 1.13.2 → 1.13.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.
@@ -35,8 +35,6 @@ module.exports = function(mongoose, config) {
35
35
 
36
36
  shortName: { type: String, default: '' },
37
37
 
38
- related: [{ type: Schema.ObjectId, ref: 'Organization'}],
39
-
40
38
  start: { type: String, default: '' },
41
39
 
42
40
  people: [{
@@ -376,7 +374,6 @@ module.exports = function(mongoose, config) {
376
374
  query.populate('fundsInvested.fund');
377
375
  query.populate('people');
378
376
  query.populate('notes');
379
- query.populate('related', 'name logoUrl');
380
377
  query.deepPopulate([
381
378
  'people.sources.person',
382
379
  'people.calendarEventSummaries.attendees.internal',
@@ -702,14 +699,14 @@ module.exports = function(mongoose, config) {
702
699
 
703
700
  LimitedPartner.plugin(filter, {
704
701
  readFilter: {
705
- 'admin': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
706
- 'lp-full': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
702
+ 'admin': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
703
+ 'lp-full': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
707
704
  'lp-names': ['name', 'shortName', 'flagged'],
708
705
  'none': []
709
706
  },
710
707
  writeFilter: {
711
- 'admin': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
712
- 'lp-full': ['name', 'shortName', 'related', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
708
+ 'admin': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
709
+ 'lp-full': ['name', 'shortName', 'start', 'people', 'documentSlugs', 'fundsInvested', 'contact', 'distributions', 'k1', 'entered', 'status', 'flagged', 'notes'],
713
710
  'lp-names': ['flagged'],
714
711
  'none': []
715
712
  },
@@ -726,6 +726,7 @@ module.exports = function(mongoose, config) {
726
726
  .populate('funds', 'name hexColorCode closeDate')
727
727
  .populate('operating.acquired.public.by', 'name logoUrl')
728
728
  .populate('operating.acquired.private.by', 'name logoUrl')
729
+ .populate('lps')
729
730
  .deepPopulate([
730
731
  'people.person.sources.person',
731
732
  'people.person.calendarEventSummaries.attendees.internal',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",