@dhyasama/totem-models 6.15.3 → 6.15.4

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.
@@ -1321,8 +1321,12 @@ module.exports = function(mongoose, config) {
1321
1321
  // todo - logic to check public and private
1322
1322
  var self = this;
1323
1323
  self
1324
- .find({
1325
- 'operating.acquired.private.by': orgid, 'deleted': {$ne: true} })
1324
+ .find(
1325
+ { $or: [
1326
+ {'operating.acquired.private.by': orgid, 'deleted': {$ne: true} },
1327
+ {'operating.acquired.public.by': orgid, 'deleted': {$ne: true} },
1328
+ ]}
1329
+ )
1326
1330
  .select('name logoUrl')
1327
1331
  .exec(cb);
1328
1332
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.15.3",
3
+ "version": "6.15.4",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",