@dhyasama/totem-models 3.0.0 → 3.1.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.
@@ -604,7 +604,7 @@ module.exports = function(mongoose, config) {
604
604
  var self = this;
605
605
  var query;
606
606
  var getLps = function() {
607
- //query.select('name');
607
+ query.populate('fundsInvested.fund');
608
608
  query.exec(function (err, lps) {
609
609
 
610
610
  if (err) return cb(err, null);
@@ -823,7 +823,16 @@ module.exports = function(mongoose, config) {
823
823
  query.populate('operating.acquired.public.by', 'name logoUrl');
824
824
  query.populate('operating.acquired.private.by', 'name logoUrl');
825
825
 
826
- if (options.role != 'none') query.populate(lpPopulateOptions);
826
+ if (options.role != 'none') {
827
+ query.populate(lpPopulateOptions);
828
+ query.deepPopulate([
829
+ 'lps.fundsInvested.fund'
830
+ ], {
831
+ populate: {
832
+ 'lps.fundsInvested.fund': { select: 'shortName' }
833
+ }
834
+ })
835
+ }
827
836
 
828
837
  query.exec(cb);
829
838
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",