@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.
- package/lib/LimitedPartner.js +1 -1
- package/lib/Organization.js +10 -1
- package/package.json +1 -1
package/lib/LimitedPartner.js
CHANGED
|
@@ -604,7 +604,7 @@ module.exports = function(mongoose, config) {
|
|
|
604
604
|
var self = this;
|
|
605
605
|
var query;
|
|
606
606
|
var getLps = function() {
|
|
607
|
-
|
|
607
|
+
query.populate('fundsInvested.fund');
|
|
608
608
|
query.exec(function (err, lps) {
|
|
609
609
|
|
|
610
610
|
if (err) return cb(err, null);
|
package/lib/Organization.js
CHANGED
|
@@ -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')
|
|
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
|
|