From 25807cc62f9ef77501421b0cb8d525e0fba71a4b Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 27 Feb 2025 14:22:48 +0000 Subject: [PATCH] Fixed constructor Signed-off-by: snipe --- app/Mail/UnacceptedAssetReminderMail.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Mail/UnacceptedAssetReminderMail.php b/app/Mail/UnacceptedAssetReminderMail.php index 1436bbc84..0e4473aaa 100644 --- a/app/Mail/UnacceptedAssetReminderMail.php +++ b/app/Mail/UnacceptedAssetReminderMail.php @@ -19,9 +19,10 @@ class UnacceptedAssetReminderMail extends Mailable */ public function __construct($checkout_info, $count) { + $this->count = $count; - $this->target = $checkout_info['acceptance']?->assignedTo; - $this->acceptance = $checkout_info['acceptance']; + $this->target = $checkout_info?->assignedTo; + $this->acceptance = $checkout_info; } /**