@dhyasama/totem-models 1.13.3 → 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.
@@ -619,6 +619,14 @@ module.exports = function(mongoose, config) {
619
619
 
620
620
  };
621
621
 
622
+ Organization.statics.findByLimitedPartner = function findByLimitedPartner(lpid, cb) {
623
+ var self = this;
624
+ self
625
+ .find({ 'lps': lpid, 'deleted': {$ne: true} })
626
+ .select('name logoUrl')
627
+ .exec(cb);
628
+ };
629
+
622
630
  Organization.statics.findByPerson = function findByPerson(personId, cb) {
623
631
 
624
632
  // Given a person id, get all organizations with that person
@@ -685,6 +693,15 @@ module.exports = function(mongoose, config) {
685
693
 
686
694
  };
687
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
+
688
705
  Organization.statics.getBoardsOfPerson = function getBoardsOfPerson(personId, cb) {
689
706
 
690
707
  var self = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.13.3",
3
+ "version": "1.15.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",