summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-09-26 12:24:40 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-09-26 12:24:40 -0400
commit020b66383643f42c183b758fe1bcb73ac6f689bb (patch)
tree77b63f462876c411cf1e348bd9cb0934fc505ae8 /models
parente5f0dd7dd8a3629416c413381993fb791f314311 (diff)
downloadwekan-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.js4
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(