From cd82ce07649024d4d2a6c41155aae4b24209a49e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 21 Jun 2021 15:57:14 +1000 Subject: [PATCH] Log Reminders --- app/Jobs/Util/ReminderJob.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Jobs/Util/ReminderJob.php b/app/Jobs/Util/ReminderJob.php index 99ab3b3b09cb..f9cd2e68cfea 100644 --- a/app/Jobs/Util/ReminderJob.php +++ b/app/Jobs/Util/ReminderJob.php @@ -53,6 +53,8 @@ class ReminderJob implements ShouldQueue private function processReminders() { + nlog("Sending invoice reminders " . now()->format('Y-m-d h:i:s')); + Invoice::whereDate('next_send_date', '<=', now()) ->where('is_deleted', 0) ->whereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL])