diff --git a/app/Console/Commands/Data/Test.php b/app/Console/Commands/Data/Test.php index 3d52f8d98..720675db1 100644 --- a/app/Console/Commands/Data/Test.php +++ b/app/Console/Commands/Data/Test.php @@ -72,7 +72,7 @@ class Test extends Command } catch(RequestFailedException $e) { return null; } - + var_dump($reponse); dd($response->getErrorCode()); } } diff --git a/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php b/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php index bc2cc5996..0821cba65 100644 --- a/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php +++ b/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php @@ -109,12 +109,14 @@ class ProcessSendEveMailJob implements ShouldQueue $this->release(20); } - if($response == null) { + //Get the error code and take the appropriate action + $errorCode = $response->getErrorCode(); + + if($errorCode === null) { $this->release(30); } - //Get the error code and take the appropriate action - $errorCode = $response->getErrorCode(); + switch($errorCode) { case 400: //Bad Request