Minor fixes for ninjamailer

This commit is contained in:
David Bomba 2023-01-15 15:22:29 +11:00
parent e630c54ddf
commit 60d9a33f0d

View File

@ -90,7 +90,7 @@ class NinjaMailerJob implements ShouldQueue
$this->company = Company::where('company_key', $this->nmo->company->company_key)->first();
/* If any pre conditions fail, we return early here */
if($this->preFlightChecksFail())
if(!$this->company || $this->preFlightChecksFail())
return;
/* Set the email driver */