From 2dca66d23c1566938b1bc84aef7fdc38f17bbb24 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 3 May 2022 09:51:53 +1000 Subject: [PATCH] Additional fixes for client payment failure mails --- app/Jobs/Mail/PaymentFailedMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Mail/PaymentFailedMailer.php b/app/Jobs/Mail/PaymentFailedMailer.php index 5a53e8c17ce8..8a9d46785298 100644 --- a/app/Jobs/Mail/PaymentFailedMailer.php +++ b/app/Jobs/Mail/PaymentFailedMailer.php @@ -111,7 +111,7 @@ class PaymentFailedMailer implements ShouldQueue //add client payment failures here. // - if($contact = $this->client->primary_contact()->first() && $this->payment_hash) + if($contact = $this->client->contacts()->first() && $this->payment_hash) { $mail_obj = (new ClientPaymentFailureObject($this->client, $this->error, $this->company, $this->payment_hash))->build();