diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-23 16:36:29 +0100 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-24 00:05:00 +0100 |
commit | 0fec7115451ba3b49442965c8160df4911157601 (patch) | |
tree | 12364d6c96f0900aea318b16863a246b6c6dd9ee /models/boards.js | |
parent | 7a6afb8aea2c3398ec0fe34d664398bd94cac90a (diff) | |
download | wekan-0fec7115451ba3b49442965c8160df4911157601.tar.gz wekan-0fec7115451ba3b49442965c8160df4911157601.tar.bz2 wekan-0fec7115451ba3b49442965c8160df4911157601.zip |
Prepare to create card from template
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js index c17c7351..25cf5e37 100644 --- a/models/boards.js +++ b/models/boards.js @@ -473,6 +473,8 @@ Boards.helpers({ if (this.isTemplatesBoard()) { query.type = 'template-card'; query.archived = false; + } else { + query.type = {$nin: ['template-card']}; } const projection = { limit: 10, sort: { createdAt: -1 } }; |