summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
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(