|
@@ -1583,14 +1583,14 @@ const findDueCards = days => {
|
|
if (!days.map) days = [days];
|
|
if (!days.map) days = [days];
|
|
days.map(day => {
|
|
days.map(day => {
|
|
let args = [];
|
|
let args = [];
|
|
- if (day == 0) {
|
|
|
|
|
|
+ if (day === 0) {
|
|
args = [then(0), then(1), 'duenow'];
|
|
args = [then(0), then(1), 'duenow'];
|
|
} else if (day > 0) {
|
|
} else if (day > 0) {
|
|
args = [then(1), then(day), 'almostdue'];
|
|
args = [then(1), then(day), 'almostdue'];
|
|
} else {
|
|
} else {
|
|
args = [then(day), now, 'pastdue'];
|
|
args = [then(day), now, 'pastdue'];
|
|
}
|
|
}
|
|
- seekDue.apply(null, args);
|
|
|
|
|
|
+ seekDue(...args);
|
|
});
|
|
});
|
|
};
|
|
};
|
|
const addCronJob = _.debounce(
|
|
const addCronJob = _.debounce(
|