diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-28 03:24:18 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-04-28 03:24:18 +0300 |
commit | 9ae20a3f51e63c29f536e2f5b3e66a2c7d88c691 (patch) | |
tree | dd0199e6caac8e7891288977687454e30155f0ae /models/cards.js | |
parent | 280e66947e3afa878c41e876cf827ebcec81a2c6 (diff) | |
download | wekan-9ae20a3f51e63c29f536e2f5b3e66a2c7d88c691.tar.gz wekan-9ae20a3f51e63c29f536e2f5b3e66a2c7d88c691.tar.bz2 wekan-9ae20a3f51e63c29f536e2f5b3e66a2c7d88c691.zip |
Fix Cards and Users docs not generated because of syntax error and new Javascript syntax.
Wekan uses wekan/releases/generate-docs*.sh Python code to generate OpenAPI docs,
it did not show any errors while generating docs, only left out parts of API docs.
Thanks to pvcon13 and xet7 !
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 5 |
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: [], }, |