diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-09-26 10:53:40 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-09-26 10:53:40 -0400 |
commit | 62b72a03c4889377169411c8cdbf372c71cac1af (patch) | |
tree | 5328397ddf7ae571038ffe5d201fb2d77eadf742 /models | |
parent | d5cff1ec48bf9ab13a32576e7495ae54c3d2c0f7 (diff) | |
download | wekan-62b72a03c4889377169411c8cdbf372c71cac1af.tar.gz wekan-62b72a03c4889377169411c8cdbf372c71cac1af.tar.bz2 wekan-62b72a03c4889377169411c8cdbf372c71cac1af.zip |
Add feature: Add due timeline into Calendar view
Diffstat (limited to 'models')
-rw-r--r-- | models/activities.js | 1 | ||||
-rw-r--r-- | models/boards.js | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/models/activities.js b/models/activities.js index cb1dddaf..19e3fb7d 100644 --- a/models/activities.js +++ b/models/activities.js @@ -289,6 +289,7 @@ if (Meteor.isServer) { activities: { $in: [description, 'all'] }, }).fetch(); if (integrations.length > 0) { + params.watchers = watchers; integrations.forEach(integration => { Meteor.call( 'outgoingWebhooks', 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, |