@dhyasama/totem-models 9.4.0 → 9.4.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.
Files changed (2) hide show
  1. package/lib/CapTable.js +2 -2
  2. package/package.json +1 -1
package/lib/CapTable.js CHANGED
@@ -51,7 +51,7 @@ module.exports = function(mongoose, config) {
51
51
  shares: { type: Number, default: 0 },
52
52
 
53
53
  // computed on save (via pre-save hook); don't set directly;
54
- ownership: { type: Number, default: 0 }
54
+ ownership: { type: Number, default: 0 },
55
55
 
56
56
  // link stakeholder to a fund in our system
57
57
  fund: {
@@ -359,7 +359,7 @@ module.exports = function(mongoose, config) {
359
359
  // Sum each stakeholders shares
360
360
  _.each(self.stakeholders, function(stakeholder) {
361
361
 
362
- var shares = _.reduce(stakeholder.rounds, function(rounds, i) {
362
+ var shares = _.reduce(stakeholder.rounds, function(memo, i) {
363
363
  return memo + i.shares;
364
364
  }, 0);
365
365
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.4.0",
3
+ "version": "9.4.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",