@dhyasama/totem-models 5.10.3 → 5.10.4

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 +2 -2
  2. package/package.json +1 -1
package/lib/Deal.js CHANGED
@@ -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.4",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",