diff --git a/app/Jobs/Company/CompanyImport.php b/app/Jobs/Company/CompanyImport.php index b1ed1e9c6bfb..c3f1b91a582c 100644 --- a/app/Jobs/Company/CompanyImport.php +++ b/app/Jobs/Company/CompanyImport.php @@ -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; }