summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index af7685ae..a9348478 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -699,6 +699,13 @@ Boards.helpers({
return result;
},
+ cardsDueInBetween(start, end) {
+ return Cards.find({
+ boardId: this._id,
+ dueAt: { $gte: start, $lte: end },
+ });
+ },
+
cardsInInterval(start, end) {
return Cards.find({
boardId: this._id,