@dhyasama/totem-models 5.10.3 → 5.10.5

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 -3
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -172,7 +172,7 @@ module.exports = function(mongoose, config) {
172
172
  .populate('messages')
173
173
  .populate('sources.person', 'name avatarUrl title')
174
174
  .populate('referrers.person', 'name avatarUrl title')
175
- .populate('votes.account', 'name avatarUrl title')
175
+ .populate('votes.person', 'name avatarUrl title')
176
176
  .populate({
177
177
  path: 'documents',
178
178
  match: { customer: customerId }
@@ -234,7 +234,7 @@ module.exports = function(mongoose, config) {
234
234
  });
235
235
  };
236
236
 
237
- Deal.statics.addVote = function(dealId, user, vote, cb) {
237
+ Deal.statics.addVote = function(dealId, personId, vote, cb) {
238
238
 
239
239
  var self = this;
240
240
 
@@ -242,7 +242,7 @@ module.exports = function(mongoose, config) {
242
242
  {
243
243
  votes: {
244
244
  timestamp: new Date(),
245
- account: user,
245
+ person: personId,
246
246
  value: vote
247
247
  }
248
248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "5.10.3",
3
+ "version": "5.10.5",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",