Working on the template action

This commit is contained in:
David Bomba 2023-10-06 17:52:21 +11:00
parent e7abfc09c4
commit 2e4447fdf2

View File

@ -93,12 +93,12 @@ class TemplateAction implements ShouldQueue
$pdf = $template_service->build($data)->getPdf(); $pdf = $template_service->build($data)->getPdf();
if($this->send_email) if($this->send_email)
return $this->sendEmail($pdf); $this->sendEmail($pdf);
else
return $pdf; return $pdf;
} }
private function sendEmail(mixed $pdf): void private function sendEmail(mixed $pdf): mixed
{ {
//send the email. //send the email.
} }