@dhyasama/totem-models 7.23.0 → 7.25.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/Round.js +3 -2
- package/package.json +1 -1
package/lib/Round.js
CHANGED
|
@@ -150,6 +150,7 @@ module.exports = function(mongoose, config) {
|
|
|
150
150
|
// construct the org
|
|
151
151
|
var org = {
|
|
152
152
|
_id: rounds[0].organization._id,
|
|
153
|
+
slug: rounds[0].organization.slug,
|
|
153
154
|
name: rounds[0].organization.name,
|
|
154
155
|
logoUrl: rounds[0].organization.logoUrl,
|
|
155
156
|
description: rounds[0].organization.description,
|
|
@@ -609,7 +610,7 @@ module.exports = function(mongoose, config) {
|
|
|
609
610
|
|
|
610
611
|
var query = self.find({ 'vehicles.fund': fundId });
|
|
611
612
|
query.select('organization vehicles preMoneyValuation');
|
|
612
|
-
query.populate('organization', 'name logoUrl description contact filters status ipo closed acquired operating website websiteAliases');
|
|
613
|
+
query.populate('organization', 'name slug logoUrl description contact filters status ipo closed acquired operating website websiteAliases');
|
|
613
614
|
query.populate('vehicles.fund');
|
|
614
615
|
|
|
615
616
|
if (config.CUSTOMER_ID == 'GLOBAL_PROCESS') {
|
|
@@ -645,7 +646,7 @@ module.exports = function(mongoose, config) {
|
|
|
645
646
|
|
|
646
647
|
var query = self.find({ 'vehicles.fund': { $in: fundIds } });
|
|
647
648
|
query.select('organization vehicles preMoneyValuation');
|
|
648
|
-
query.populate('organization', 'name logoUrl description contact chairs filters status ipo closed acquired operating website websiteAliases');
|
|
649
|
+
query.populate('organization', 'name slug logoUrl description contact chairs filters status ipo closed acquired operating website websiteAliases');
|
|
649
650
|
query.deepPopulate([
|
|
650
651
|
'organization.chairs.first',
|
|
651
652
|
'organization.chairs.second',
|