diff --git a/app/Jobs/ProcessWalletJournalJob.php b/app/Jobs/ProcessWalletJournalJob.php index 4dc6b4595..9a0abd624 100644 --- a/app/Jobs/ProcessWalletJournalJob.php +++ b/app/Jobs/ProcessWalletJournalJob.php @@ -38,6 +38,8 @@ class ProcessWalletJournalJob implements ShouldQueue * @return void */ public function __construct(JobModel $pwj) { + dd($pwj); + $this->division = $pwj->division; $this->charId = $pwj->charId; $this->page = $pwj->page; diff --git a/app/Library/Finances/Helper/FinanceHelper.php b/app/Library/Finances/Helper/FinanceHelper.php index dfcaa3aa3..f4bda89d5 100644 --- a/app/Library/Finances/Helper/FinanceHelper.php +++ b/app/Library/Finances/Helper/FinanceHelper.php @@ -133,7 +133,7 @@ class FinanceHelper { $scope = $tokenData['scope']; //If the token is not found, send the user an eve mail, and just exit out of the function - if($this->TokenNotFound($token, $scope)) { + if($this->TokenNotFound($token, $scope, $charId)) { printr("Token not found\n"); return null; } @@ -210,7 +210,7 @@ class FinanceHelper { $lookups = new LookupHelper; //If the token is not found, send the user an eve mail, and just exit out of the function - if($this->TokenNotFound($token, $scope)) { + if($this->TokenNotFound($token, $scope, $charId)) { return null; } @@ -288,7 +288,7 @@ class FinanceHelper { $token = $tokenData['token']; $scope = $tokenData['scope']; - if($this->TokenNotFound($token, $scope)) { + if($this->TokenNotFound($token, $scope, $charId)) { return null; } @@ -340,7 +340,7 @@ class FinanceHelper { $lookups = new LookupHelper; //If the token is not found, send the user an eve mail, and just exit out of the function - if($this->TokenNotFound($token, $scope)) { + if($this->TokenNotFound($token, $scope, $charId)) { return null; } @@ -409,7 +409,7 @@ class FinanceHelper { return $data; } - private function TokenNotFound($token, $scope) { + private function TokenNotFound($token, $scope, $charId) { if(!isset($token[0]->refresh_token) || !isset($scope[0]->scope)) { //Register a mail to be dispatched as a job $mail = new EveMail;