@dhyasama/totem-models 1.24.0 → 1.25.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.
@@ -857,6 +857,15 @@ module.exports = function(mongoose, config) {
857
857
 
858
858
  };
859
859
 
860
+ Organization.statics.getLpOrgs = function getLpOrgs(lpids, cb) {
861
+ var self = this;
862
+ self
863
+ .find({ 'lps': { $in : lpids }, 'deleted': {$ne: true} })
864
+ .select('name logoUrl lps')
865
+ .populate('lps', 'name customer')
866
+ .exec(cb);
867
+ };
868
+
860
869
  Organization.statics.getNotes = function getNotes(orgid, cb) {
861
870
 
862
871
  var self = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",