@dhyasama/totem-models 6.34.0 → 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.
Files changed (2) hide show
  1. package/lib/Deal.js +3 -8
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -147,24 +147,21 @@ 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',
156
155
  match: { customer: config.CUSTOMER_ID }
157
156
  })
158
- .populate('history.account', 'person')
159
157
  .exec(cb);
160
158
  };
161
159
 
162
160
  Deal.statics.getByIds = function (ids, cb) {
163
161
  this
164
162
  .find({customer: config.CUSTOMER_ID, '_id': { $in : ids } })
165
- .populate('organization', 'name description logoUrl website websiteAliases chairs')
163
+ .populate('organization', 'name description logoUrl website websiteAliases chairs contact')
166
164
  .populate('messages')
167
- .populate('source.person', 'name avatarUrl title')
168
165
  .populate('referrer.person', 'name avatarUrl title')
169
166
  .populate({
170
167
  path: 'documents',
@@ -192,9 +189,8 @@ module.exports = function(mongoose, config) {
192
189
 
193
190
  self
194
191
  .find(terms)
195
- .populate('organization', 'name description logoUrl website websiteAliases chairs')
192
+ .populate('organization', 'name description logoUrl website websiteAliases chairs contact')
196
193
  .populate('messages')
197
- .populate('source.person', 'name avatarUrl title')
198
194
  .populate('referrer.person', 'name avatarUrl title')
199
195
  .populate({
200
196
  path: 'documents',
@@ -229,7 +225,6 @@ module.exports = function(mongoose, config) {
229
225
  })
230
226
  .populate('organization', 'name logoUrl website websiteAliases')
231
227
  .populate('messages')
232
- .populate('source.person', 'name avatarUrl title')
233
228
  .populate('referrer.person', 'name avatarUrl title')
234
229
  .populate({
235
230
  path: 'documents',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.34.0",
3
+ "version": "6.35.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",