@dhyasama/totem-models 1.6.2 → 1.6.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.
- package/.npmignore +14 -0
- package/lib/Organization.js +2 -2
- package/lib/Round.js +1 -3
- package/package.json +1 -1
package/.npmignore
ADDED
package/lib/Organization.js
CHANGED
|
@@ -505,7 +505,7 @@ module.exports = function(mongoose, config) {
|
|
|
505
505
|
var self = this;
|
|
506
506
|
self
|
|
507
507
|
.find({ 'funds': { $in : fundids }, 'deleted': {$ne: true} })
|
|
508
|
-
.select('name logoUrl
|
|
508
|
+
.select('name logoUrl')
|
|
509
509
|
.exec(cb);
|
|
510
510
|
};
|
|
511
511
|
|
|
@@ -1022,6 +1022,6 @@ module.exports = function(mongoose, config) {
|
|
|
1022
1022
|
var deepPopulate = require('mongoose-deep-populate')(mongoose);
|
|
1023
1023
|
Organization.plugin(deepPopulate);
|
|
1024
1024
|
|
|
1025
|
-
mongoose.model('Organization', Organization, '
|
|
1025
|
+
mongoose.model('Organization', Organization, 'organizations');
|
|
1026
1026
|
|
|
1027
1027
|
};
|
package/lib/Round.js
CHANGED
|
@@ -137,8 +137,6 @@ module.exports = function(mongoose, config) {
|
|
|
137
137
|
name: rounds[0].organization.name,
|
|
138
138
|
logoUrl: rounds[0].organization.logoUrl,
|
|
139
139
|
description: rounds[0].organization.description,
|
|
140
|
-
contact: rounds[0].organization.contact,
|
|
141
|
-
industries: rounds[0].organization.industries,
|
|
142
140
|
status: rounds[0].organization.status,
|
|
143
141
|
preMoneyValuation: rounds[0].preMoneyValuation
|
|
144
142
|
};
|
|
@@ -556,7 +554,7 @@ module.exports = function(mongoose, config) {
|
|
|
556
554
|
self
|
|
557
555
|
.find({ 'vehicles.fund': { $in: fundIds } })
|
|
558
556
|
.select('organization vehicles preMoneyValuation')
|
|
559
|
-
.populate('organization', 'name logoUrl description
|
|
557
|
+
.populate('organization', 'name logoUrl description')
|
|
560
558
|
.populate('vehicles.fund')
|
|
561
559
|
.populate('vehicles.investments')
|
|
562
560
|
.exec(function(err, rounds) {
|