diff --git a/lib/verification-reminders.js b/lib/verification-reminders.js index a8ec990..091910b 100644 --- a/lib/verification-reminders.js +++ b/lib/verification-reminders.js @@ -63,9 +63,11 @@ module.exports = function (mailer, db, options) { .then( function (reminderResultsByType) { reminderResultsByType.forEach(function (reminders) { - reminders.forEach(function (reminder) { - self._processReminder(reminder) - }) + if (Array.isArray(reminders)) { + reminders.forEach(function (reminder) { + self._processReminder(reminder) + }) + } }) } ).catch(function (err) {