diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-19 12:22:03 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-19 12:22:03 -0300 |
commit | 690a5b970319ceabc0be965152187d7098022621 (patch) | |
tree | 1e86d3ef8a3523b981debc27e4fbe25ebcad8713 /models/boards.js | |
parent | 8b6a2eade3f1e8e05ee73568c8b69393d2b42827 (diff) | |
download | wekan-690a5b970319ceabc0be965152187d7098022621.tar.gz wekan-690a5b970319ceabc0be965152187d7098022621.tar.bz2 wekan-690a5b970319ceabc0be965152187d7098022621.zip |
First swimlane draft, no functionality
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js index 594bb7b9..5f39d8a4 100644 --- a/models/boards.js +++ b/models/boards.js @@ -187,6 +187,10 @@ Boards.helpers({ return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } }); }, + swimlanes() { + return Swimlanes.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } }); + }, + hasOvertimeCards(){ const card = Cards.findOne({isOvertime: true, boardId: this._id, archived: false} ); return card !== undefined; |