@dhyasama/totem-models 1.13.3 → 1.14.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.13.3",
3
+ "version": "1.14.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",