@dhyasama/totem-models 1.17.6 → 1.17.8
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/Organization.js +1 -0
- package/lib/Round.js +3 -3
- package/package.json +1 -1
- package/.npmignore +0 -14
package/lib/Organization.js
CHANGED
|
@@ -493,6 +493,7 @@ module.exports = function(mongoose, config) {
|
|
|
493
493
|
|
|
494
494
|
// Check if person is already added
|
|
495
495
|
var match = _.find(self.people, function(existingPerson) {
|
|
496
|
+
if (existingPerson.person == null) return null;
|
|
496
497
|
var id = utils.isValidObjectId(existingPerson.person) ? existingPerson.person : existingPerson.person.id;
|
|
497
498
|
return id.toString() == personToAdd.person.toString();
|
|
498
499
|
});
|
package/lib/Round.js
CHANGED
|
@@ -138,7 +138,7 @@ module.exports = function(mongoose, config) {
|
|
|
138
138
|
logoUrl: rounds[0].organization.logoUrl,
|
|
139
139
|
description: rounds[0].organization.description,
|
|
140
140
|
contact: rounds[0].organization.contact,
|
|
141
|
-
|
|
141
|
+
filters: rounds[0].organization.filters,
|
|
142
142
|
status: rounds[0].organization.status,
|
|
143
143
|
preMoneyValuation: rounds[0].preMoneyValuation
|
|
144
144
|
};
|
|
@@ -544,7 +544,7 @@ module.exports = function(mongoose, config) {
|
|
|
544
544
|
|
|
545
545
|
var query = self.find({ 'vehicles.fund': fundId });
|
|
546
546
|
query.select('organization vehicles preMoneyValuation');
|
|
547
|
-
query.populate('organization', 'name logoUrl description contact
|
|
547
|
+
query.populate('organization', 'name logoUrl description contact filters status ipo closed acquired operating');
|
|
548
548
|
query.populate('vehicles.fund');
|
|
549
549
|
|
|
550
550
|
if (config.CUSTOMER_ID == 'GLOBAL_PROCESS') {
|
|
@@ -580,7 +580,7 @@ module.exports = function(mongoose, config) {
|
|
|
580
580
|
|
|
581
581
|
var query = self.find({ 'vehicles.fund': { $in: fundIds } });
|
|
582
582
|
query.select('organization vehicles preMoneyValuation');
|
|
583
|
-
query.populate('organization', 'name logoUrl description contact
|
|
583
|
+
query.populate('organization', 'name logoUrl description contact filters status ipo closed acquired operating');
|
|
584
584
|
query.populate('vehicles.fund');
|
|
585
585
|
|
|
586
586
|
if (config.CUSTOMER_ID == 'GLOBAL_PROCESS') {
|
package/package.json
CHANGED