summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index c51a9865..eda34bf4 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -212,6 +212,10 @@ Boards.helpers({
return this.permission === 'public';
},
+ cards() {
+ return Cards.find({ boardId: this._id, archived: false }, { sort: { title: 1 } });
+ },
+
lists() {
return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } });
},