From 906fabe23fd217eb478920e7f8e8c47418904d7a Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Mar 2021 00:00:23 +0900 Subject: [PATCH] mail update --- app/Jobs/Commands/Eve/ProcessSendEveMailJob.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php b/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php index ced14bb1e..3b36afbe2 100644 --- a/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php +++ b/app/Jobs/Commands/Eve/ProcessSendEveMailJob.php @@ -23,6 +23,7 @@ use App\Models\Esi\EsiScope; use App\Models\Esi\EsiToken; use App\Models\Jobs\JobStatus; use App\Models\Mail\SentMail; +use Seat\Eseye\Containers\EsiResponse; class ProcessSendEveMailJob implements ShouldQueue { @@ -73,7 +74,8 @@ class ProcessSendEveMailJob implements ShouldQueue { //Declare some variables $esiHelper = new Esi; - $response = null; + $errorCode = null; + $response = new EsiResponse; //Get the esi configuration $config = config('esi'); @@ -108,7 +110,9 @@ class ProcessSendEveMailJob implements ShouldQueue } //Get the response code and take the appropriate action - $errorCode = $response->getErrorCode(); + if($response != null) { + $errorCode = $response->getErrorCode(); + } if($errorCode === null) { $this->release(30);