@dhyasama/totem-models 6.35.0 → 6.36.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 +12 -0
- package/package.json +1 -1
package/lib/CapTable.js
CHANGED
|
@@ -254,6 +254,18 @@ module.exports = function(mongoose, config) {
|
|
|
254
254
|
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
+
CapTable.statics.getAllForCustomer2 = function getAllForCustomer2(customerId, cb) {
|
|
258
|
+
|
|
259
|
+
var self = this;
|
|
260
|
+
|
|
261
|
+
self
|
|
262
|
+
.find({customer: customerId })
|
|
263
|
+
.populate('stakeholders.person', 'name avatarUrl title')
|
|
264
|
+
.populate('stakeholders.fund', 'name shortName')
|
|
265
|
+
.exec(cb);
|
|
266
|
+
|
|
267
|
+
};
|
|
268
|
+
|
|
257
269
|
CapTable.statics.getByFunds = function getByFunds(fundIds, cb) {
|
|
258
270
|
|
|
259
271
|
var self = this;
|