@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.
- package/lib/Organization.js +6 -2
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -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
|
-
|
|
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
|
};
|