From 2e3f371b802a7e148490c3b2844fcba6b2a9060f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 27 Nov 2022 12:17:02 +1100 Subject: [PATCH] Minor fixes for failed notifications --- app/Listeners/Invoice/InvoiceFailedEmailNotification.php | 2 +- config/queue.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Listeners/Invoice/InvoiceFailedEmailNotification.php b/app/Listeners/Invoice/InvoiceFailedEmailNotification.php index 8ab0e094949f..ac100e0e4646 100644 --- a/app/Listeners/Invoice/InvoiceFailedEmailNotification.php +++ b/app/Listeners/Invoice/InvoiceFailedEmailNotification.php @@ -48,7 +48,7 @@ class InvoiceFailedEmailNotification $first_notification_sent = true; $invoice = $event->invitation->invoice; - $invoice->update(['last_sent_date' => now()]); + // $invoice->update(['last_sent_date' => now()]); $nmo = new NinjaMailerObject; $nmo->mailable = new NinjaMailer((new EntityFailedSendObject($event->invitation, 'invoice', $event->template, $event->message))->build()); diff --git a/config/queue.php b/config/queue.php index 412282299176..18666fc43454 100644 --- a/config/queue.php +++ b/config/queue.php @@ -67,7 +67,7 @@ return [ 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90000000, - 'block_for' => null, + 'block_for' => 1, 'after_commit' => false, ],