mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
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 !
This commit is contained in:
parent
280e66947e
commit
9ae20a3f51
4 changed files with 5433 additions and 257 deletions
|
@ -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: [],
|
||||
},
|
||||
|
|
|
@ -531,7 +531,7 @@ Users.helpers({
|
|||
getStartDayOfWeek() {
|
||||
const profile = this.profile || {};
|
||||
// default is 'Monday' (1)
|
||||
return profile.startDayOfWeek ?? 1;
|
||||
return profile.startDayOfWeek || 1;
|
||||
},
|
||||
|
||||
getTemplatesBoardId() {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue