@dhyasama/totem-models 5.0.0 → 5.0.1

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 +10 -7
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -123,15 +123,18 @@ module.exports = function(mongoose, config) {
123
123
 
124
124
  var self = this;
125
125
 
126
+ console.log('Deal.statics.getForCustomer');
127
+ console.log('customerId', customerId);
128
+
126
129
  self
127
130
  .find({ 'customer': customerId })
128
- .populate('organization', 'name logoUrl website websiteAliases')
129
- .populate('messages')
130
- .populate('sources.person', 'name avatarUrl')
131
- .populate({
132
- path: 'documents',
133
- match: { customer: customerId }
134
- })
131
+ // .populate('organization', 'name logoUrl website websiteAliases')
132
+ // .populate('messages')
133
+ // .populate('sources.person', 'name avatarUrl')
134
+ // .populate({
135
+ // path: 'documents',
136
+ // match: { customer: customerId }
137
+ // })
135
138
  .exec(cb);
136
139
 
137
140
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",