mining taxes ledgers
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user