@dhyasama/totem-models 6.34.1 → 6.35.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.
- package/lib/Deal.js +3 -7
- package/package.json +1 -1
package/lib/Deal.js
CHANGED
|
@@ -147,9 +147,8 @@ module.exports = function(mongoose, config) {
|
|
|
147
147
|
'_id': id,
|
|
148
148
|
'customer': config.CUSTOMER_ID
|
|
149
149
|
})
|
|
150
|
-
.populate('organization', 'name description logoUrl website websiteAliases chairs')
|
|
150
|
+
.populate('organization', 'name description logoUrl website websiteAliases chairs contact')
|
|
151
151
|
.populate('messages')
|
|
152
|
-
.populate('source.person', 'name avatarUrl title')
|
|
153
152
|
.populate('referrer.person', 'name avatarUrl title')
|
|
154
153
|
.populate({
|
|
155
154
|
path: 'documents',
|
|
@@ -161,9 +160,8 @@ module.exports = function(mongoose, config) {
|
|
|
161
160
|
Deal.statics.getByIds = function (ids, cb) {
|
|
162
161
|
this
|
|
163
162
|
.find({customer: config.CUSTOMER_ID, '_id': { $in : ids } })
|
|
164
|
-
.populate('organization', 'name description logoUrl website websiteAliases chairs')
|
|
163
|
+
.populate('organization', 'name description logoUrl website websiteAliases chairs contact')
|
|
165
164
|
.populate('messages')
|
|
166
|
-
.populate('source.person', 'name avatarUrl title')
|
|
167
165
|
.populate('referrer.person', 'name avatarUrl title')
|
|
168
166
|
.populate({
|
|
169
167
|
path: 'documents',
|
|
@@ -191,9 +189,8 @@ module.exports = function(mongoose, config) {
|
|
|
191
189
|
|
|
192
190
|
self
|
|
193
191
|
.find(terms)
|
|
194
|
-
.populate('organization', 'name description logoUrl website websiteAliases chairs')
|
|
192
|
+
.populate('organization', 'name description logoUrl website websiteAliases chairs contact')
|
|
195
193
|
.populate('messages')
|
|
196
|
-
.populate('source.person', 'name avatarUrl title')
|
|
197
194
|
.populate('referrer.person', 'name avatarUrl title')
|
|
198
195
|
.populate({
|
|
199
196
|
path: 'documents',
|
|
@@ -228,7 +225,6 @@ module.exports = function(mongoose, config) {
|
|
|
228
225
|
})
|
|
229
226
|
.populate('organization', 'name logoUrl website websiteAliases')
|
|
230
227
|
.populate('messages')
|
|
231
|
-
.populate('source.person', 'name avatarUrl title')
|
|
232
228
|
.populate('referrer.person', 'name avatarUrl title')
|
|
233
229
|
.populate({
|
|
234
230
|
path: 'documents',
|