diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/cards.js | 5 | ||||
-rw-r--r-- | models/users.js | 2 |
2 files changed, 4 insertions, 3 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: [], }, diff --git a/models/users.js b/models/users.js index ebb14f5f..2d84141c 100644 --- a/models/users.js +++ b/models/users.js @@ -531,7 +531,7 @@ Users.helpers({ getStartDayOfWeek() { const profile = this.profile || {}; // default is 'Monday' (1) - return profile.startDayOfWeek ?? 1; + return profile.startDayOfWeek || 1; }, getTemplatesBoardId() { |