@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 ADDED
@@ -0,0 +1,14 @@
1
+ lib-cov
2
+ *.seed
3
+ *.log
4
+ *.csv
5
+ *.dat
6
+ *.out
7
+ *.pid
8
+ *.gz
9
+
10
+ npm-debug.log
11
+ node_modules
12
+
13
+ .DS_Store
14
+ .idea
@@ -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 funds')
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, 'organization_new');
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 contact industries')
557
+ .populate('organization', 'name logoUrl description')
560
558
  .populate('vehicles.fund')
561
559
  .populate('vehicles.investments')
562
560
  .exec(function(err, rounds) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",