@dhyasama/totem-models 9.2.0 → 9.3.0
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 +0 -4
- package/package.json +1 -1
package/lib/CapTable.js
CHANGED
|
@@ -34,9 +34,6 @@ module.exports = function(mongoose, config) {
|
|
|
34
34
|
// optional reference to download the cap table file
|
|
35
35
|
document: { type: Schema.ObjectId, ref: 'Document', required: false },
|
|
36
36
|
|
|
37
|
-
// single pool of unissued options for the org
|
|
38
|
-
unissued: { type: Number, default: 0 },
|
|
39
|
-
|
|
40
37
|
// computed on save (via pre-save hook); don't set directly;
|
|
41
38
|
shares: { type: Number, default: 0 },
|
|
42
39
|
|
|
@@ -375,7 +372,6 @@ module.exports = function(mongoose, config) {
|
|
|
375
372
|
self.shares = _.reduce(self.stakeholders, function(memo, stakeholder) {
|
|
376
373
|
return memo + stakeholder.shares;
|
|
377
374
|
}, 0);
|
|
378
|
-
self.shares = self.shares + self.unissued;
|
|
379
375
|
|
|
380
376
|
// Calculate each stakeholders ownership
|
|
381
377
|
_.each(self.stakeholders, function(stakeholder) {
|