mining taxes ledgers

This commit is contained in:
2021-02-22 20:39:17 +09:00
parent 71a567e923
commit 525dddf52b

View File

@@ -46,7 +46,6 @@ class FetchMiningTaxesLedgersJob implements ShouldQueue
private $charId; private $charId;
private $corpId; private $corpId;
private $observerId; private $observerId;
private $refreshToken;
private $esi; private $esi;
/** /**
@@ -64,15 +63,16 @@ class FetchMiningTaxesLedgersJob implements ShouldQueue
$this->corpId = $corpId; $this->corpId = $corpId;
$this->observerId = $observerId; $this->observerId = $observerId;
$this->esi = new Esi; //Setup the ESI stuff
$esiHelper = new Esi;
//Setup the private esi variables //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.'); Log::critical('Character: ' . $this->charId . ' did not have the correct esi scope in FetchMiningTaxesLedgersJob.');
return null; return null;
} }
$this->refreshToken = $this->esi->GetRefreshToken($this->charId); $refreshToken = $esiHelper->GetRefreshToken($this->charId);
$this->esi = $this->esi->SetupEsiAuthentication($this->refreshToken); $this->esi = $esiHelper->SetupEsiAuthentication($refreshToken);
} }
/** /**