diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-09-26 12:24:40 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-09-26 12:24:40 -0400 |
commit | 020b66383643f42c183b758fe1bcb73ac6f689bb (patch) | |
tree | 77b63f462876c411cf1e348bd9cb0934fc505ae8 /models | |
parent | e5f0dd7dd8a3629416c413381993fb791f314311 (diff) | |
download | wekan-020b66383643f42c183b758fe1bcb73ac6f689bb.tar.gz wekan-020b66383643f42c183b758fe1bcb73ac6f689bb.tar.bz2 wekan-020b66383643f42c183b758fe1bcb73ac6f689bb.zip |
Feature enhancement: Allow wekan master have more flexiblity on setting up due reminder
Diffstat (limited to 'models')
-rw-r--r-- | models/cards.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/cards.js b/models/cards.js index 8356b5f9..371ad185 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1583,14 +1583,14 @@ const findDueCards = days => { if (!days.map) days = [days]; days.map(day => { let args = []; - if (day == 0) { + if (day === 0) { args = [then(0), then(1), 'duenow']; } else if (day > 0) { args = [then(1), then(day), 'almostdue']; } else { args = [then(day), now, 'pastdue']; } - seekDue.apply(null, args); + seekDue(...args); }); }; const addCronJob = _.debounce( |