Additional fixes for client payment failure mails

This commit is contained in:
= 2022-05-03 09:51:53 +10:00
parent 854141ede8
commit 2dca66d23c

View File

@ -111,7 +111,7 @@ class PaymentFailedMailer implements ShouldQueue
//add client payment failures here. //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(); $mail_obj = (new ClientPaymentFailureObject($this->client, $this->error, $this->company, $this->payment_hash))->build();