summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/cards.js b/models/cards.js
index 72153132..4197f7ab 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1053,6 +1053,7 @@ Cards.helpers({
return Users.find({ _id: { $in: this.vote.positive } });
return [];
},
+
voteMemberNegative() {
if (this.vote && this.vote.negative)
return Users.find({ _id: { $in: this.vote.negative } });
@@ -1475,12 +1476,12 @@ Cards.mutations({
},
};
},
- setVoteQuestion(question, public) {
+ setVoteQuestion(question, publicVote) {
return {
$set: {
vote: {
question,
- public,
+ public: publicVote,
positive: [],
negative: [],
},