@dhyasama/totem-models 6.20.1 → 6.20.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.
Files changed (2) hide show
  1. package/lib/Deal.js +5 -1
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -166,6 +166,10 @@ module.exports = function(mongoose, config) {
166
166
  .populate('messages')
167
167
  .populate('source.person', 'name avatarUrl title')
168
168
  .populate('referrer.person', 'name avatarUrl title')
169
+ .populate({
170
+ path: 'documents',
171
+ match: { customer: config.CUSTOMER_ID }
172
+ })
169
173
  .exec(function(err, deals) {
170
174
 
171
175
  if (err) return cb(err, null);
@@ -186,7 +190,7 @@ module.exports = function(mongoose, config) {
186
190
 
187
191
  });
188
192
  };
189
-
193
+
190
194
  // Get all deals belonging to a customer
191
195
  Deal.statics.getForCustomer = function (customerId, options, cb) {
192
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.20.1",
3
+ "version": "6.20.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",