|
@@ -15,7 +15,7 @@ Template.website_item.events({
|
|
|
// Put the code in here to add a vote to a website!
|
|
|
const userId = Meteor.userId();
|
|
|
let modifiers = {};
|
|
|
- let increments = {}
|
|
|
+ let increments = {};
|
|
|
if (!_.contains(this.plus, userId)) {
|
|
|
modifiers.$addToSet = { plus: userId };
|
|
|
increments.plusScore = 1;
|
|
@@ -44,7 +44,7 @@ Template.website_item.events({
|
|
|
// Put the code in here to remove a vote from a website!
|
|
|
const userId = Meteor.userId();
|
|
|
let modifiers = {};
|
|
|
- let increments = {}
|
|
|
+ let increments = {};
|
|
|
if (!_.contains(this.minus, userId)) {
|
|
|
modifiers.$addToSet = { minus: userId };
|
|
|
increments.minusScore = 1;
|