From 525dddf52b78a0c7633e67fcf3670c4e9e11849b Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 22 Feb 2021 20:39:17 +0900 Subject: [PATCH] mining taxes ledgers --- .../MiningTaxes/FetchMiningTaxesLedgersJob.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Jobs/Commands/MiningTaxes/FetchMiningTaxesLedgersJob.php b/app/Jobs/Commands/MiningTaxes/FetchMiningTaxesLedgersJob.php index f8362acd0..2345eca1d 100644 --- a/app/Jobs/Commands/MiningTaxes/FetchMiningTaxesLedgersJob.php +++ b/app/Jobs/Commands/MiningTaxes/FetchMiningTaxesLedgersJob.php @@ -46,7 +46,6 @@ class FetchMiningTaxesLedgersJob implements ShouldQueue private $charId; private $corpId; private $observerId; - private $refreshToken; private $esi; /** @@ -64,15 +63,16 @@ class FetchMiningTaxesLedgersJob implements ShouldQueue $this->corpId = $corpId; $this->observerId = $observerId; - $this->esi = new Esi; + //Setup the ESI stuff + $esiHelper = new Esi; //Setup the private esi variables - if(!$this->esi->haveEsiScope($this->charId, 'esi-industry.read_corporation_mining.v1')) { + if(!$esiHelper->haveEsiScope($this->charId, 'esi-industry.read_corporation_mining.v1')) { Log::critical('Character: ' . $this->charId . ' did not have the correct esi scope in FetchMiningTaxesLedgersJob.'); return null; } - $this->refreshToken = $this->esi->GetRefreshToken($this->charId); - $this->esi = $this->esi->SetupEsiAuthentication($this->refreshToken); + $refreshToken = $esiHelper->GetRefreshToken($this->charId); + $this->esi = $esiHelper->SetupEsiAuthentication($refreshToken); } /**