add null safe operator to acceptance reminder

This commit is contained in:
Godfrey M 2024-12-11 09:27:27 -08:00
parent 5014a95d9a
commit 2e97b56deb

View file

@ -72,7 +72,7 @@ class SendAcceptanceReminder extends Command
$locale = $acceptance->assignedTo?->locale;
$email = $acceptance->assignedTo?->email;
if(!$email){
$this->info($acceptance->assignedTo->present()->fullName().' has no email address.');
$this->info($acceptance->assignedTo?->present()->fullName().' has no email address.');
}
$item_count = $unacceptedAssetGroup->count();