From 690a5b970319ceabc0be965152187d7098022621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Fri, 19 Jan 2018 12:22:03 -0300 Subject: First swimlane draft, no functionality --- models/boards.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'models/boards.js') 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; -- cgit v1.2.3-1-g7c22