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:
Lauri Ojansivu 2020-04-28 03:24:18 +03:00
parent 280e66947e
commit 9ae20a3f51
4 changed files with 5433 additions and 257 deletions

View file

@ -531,7 +531,7 @@ Users.helpers({
getStartDayOfWeek() {
const profile = this.profile || {};
// default is 'Monday' (1)
return profile.startDayOfWeek ?? 1;
return profile.startDayOfWeek || 1;
},
getTemplatesBoardId() {