Feature enhancement: Allow wekan master have more flexiblity on setting up due reminder

This commit is contained in:
Sam X. Chen 2019-09-26 12:24:40 -04:00
parent e5f0dd7dd8
commit 020b663836
2 changed files with 3 additions and 3 deletions

View file

@ -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(