@dhyasama/totem-models 1.22.1 → 1.22.2
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/List.js +15 -3
- package/package.json +1 -1
package/lib/List.js
CHANGED
|
@@ -127,8 +127,12 @@ module.exports = function(mongoose, config) {
|
|
|
127
127
|
|
|
128
128
|
var self = this;
|
|
129
129
|
|
|
130
|
+
// DANGER
|
|
131
|
+
// Note this is not filtered by customer!
|
|
132
|
+
// It is used for merging which spans customers
|
|
133
|
+
|
|
130
134
|
self
|
|
131
|
-
.find({
|
|
135
|
+
.find({ limitedPartners: lpId })
|
|
132
136
|
.populate('limitedPartners', 'name logoUrl')
|
|
133
137
|
.populate('organizations', 'name logoUrl')
|
|
134
138
|
.populate('people', 'name title avatarUrl')
|
|
@@ -141,8 +145,12 @@ module.exports = function(mongoose, config) {
|
|
|
141
145
|
|
|
142
146
|
var self = this;
|
|
143
147
|
|
|
148
|
+
// DANGER
|
|
149
|
+
// Note this is not filtered by customer!
|
|
150
|
+
// It is used for merging which spans customers
|
|
151
|
+
|
|
144
152
|
self
|
|
145
|
-
.find({
|
|
153
|
+
.find({ organizations: orgId })
|
|
146
154
|
.populate('limitedPartners', 'name logoUrl')
|
|
147
155
|
.populate('organizations', 'name logoUrl')
|
|
148
156
|
.populate('people', 'name title avatarUrl')
|
|
@@ -155,8 +163,12 @@ module.exports = function(mongoose, config) {
|
|
|
155
163
|
|
|
156
164
|
var self = this;
|
|
157
165
|
|
|
166
|
+
// DANGER
|
|
167
|
+
// Note this is not filtered by customer!
|
|
168
|
+
// It is used for merging which spans customers
|
|
169
|
+
|
|
158
170
|
self
|
|
159
|
-
.find({
|
|
171
|
+
.find({ people: personId })
|
|
160
172
|
.populate('limitedPartners', 'name logoUrl')
|
|
161
173
|
.populate('organizations', 'name logoUrl')
|
|
162
174
|
.populate('people', 'name title avatarUrl')
|