@dhyasama/totem-models 1.14.0 → 1.15.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/Organization.js +9 -0
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -693,6 +693,15 @@ module.exports = function(mongoose, config) {
|
|
|
693
693
|
|
|
694
694
|
};
|
|
695
695
|
|
|
696
|
+
Organization.statics.getAcquistions = function getAcquistions(orgid, cb) {
|
|
697
|
+
var self = this;
|
|
698
|
+
self
|
|
699
|
+
.find({
|
|
700
|
+
'operating.acquired.private.by': orgid, 'deleted': {$ne: true} })
|
|
701
|
+
.select('name logoUrl')
|
|
702
|
+
.exec(cb);
|
|
703
|
+
};
|
|
704
|
+
|
|
696
705
|
Organization.statics.getBoardsOfPerson = function getBoardsOfPerson(personId, cb) {
|
|
697
706
|
|
|
698
707
|
var self = this;
|