Fixes for pre flight checks:
This commit is contained in:
parent
9a0c779f07
commit
215d459a0c
1 changed files with 3 additions and 2 deletions
|
|
@ -258,7 +258,6 @@ class CompanyImport implements ShouldQueue
|
|||
|
||||
}
|
||||
|
||||
$this->pre_flight_checks_pass = true;
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
|
@ -278,7 +277,7 @@ class CompanyImport implements ShouldQueue
|
|||
//perform some magic here
|
||||
}
|
||||
|
||||
if(!$this->pre_flight_checks_pass)
|
||||
if($this->pre_flight_checks_pass === false)
|
||||
{
|
||||
$nmo = new NinjaMailerObject;
|
||||
$nmo->mailable = new CompanyImportFailure($this->company, $this->message);
|
||||
|
|
@ -349,6 +348,8 @@ class CompanyImport implements ShouldQueue
|
|||
|
||||
}
|
||||
|
||||
nlog("finished importing company data");
|
||||
|
||||
return $this;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue