@dhyasama/totem-models 1.6.0 → 1.6.2

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/CapTable.js CHANGED
@@ -261,7 +261,7 @@ module.exports = function(mongoose, config) {
261
261
  self
262
262
  .findOne({customer: customerId, organization: orgId })
263
263
  .populate('stakeholders.person', 'name avatarUrl title')
264
- .populate('stakeholders.fund', 'name')
264
+ .populate('stakeholders.fund', 'name shortName')
265
265
  .exec(cb);
266
266
 
267
267
  };
@@ -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 funds')
509
509
  .exec(cb);
510
510
  };
511
511
 
package/lib/Round.js CHANGED
@@ -137,6 +137,8 @@ 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,
140
142
  status: rounds[0].organization.status,
141
143
  preMoneyValuation: rounds[0].preMoneyValuation
142
144
  };
@@ -554,7 +556,7 @@ module.exports = function(mongoose, config) {
554
556
  self
555
557
  .find({ 'vehicles.fund': { $in: fundIds } })
556
558
  .select('organization vehicles preMoneyValuation')
557
- .populate('organization', 'name logoUrl description')
559
+ .populate('organization', 'name logoUrl description contact industries')
558
560
  .populate('vehicles.fund')
559
561
  .populate('vehicles.investments')
560
562
  .exec(function(err, rounds) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
package/.npmignore DELETED
@@ -1,14 +0,0 @@
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