diff --git a/app/Jobs/Commands/Moons/FetchMoonLedgerJob.php b/app/Jobs/Commands/Moons/FetchMoonLedgerJob.php index b8e08b25e..841b8d55f 100644 --- a/app/Jobs/Commands/Moons/FetchMoonLedgerJob.php +++ b/app/Jobs/Commands/Moons/FetchMoonLedgerJob.php @@ -80,12 +80,18 @@ class FetchMoonLedgerJob implements ShouldQueue //Get the refresh token if the scope checks have passed $refreshToken = $esiHelper->GetRefreshToken($this->charId); + //Setup the esi information + $esi = $esiHelper->SetupEsiAuthentication($refreshToken); + //Get the character data from the lookup table $character = $lookup->GetCharacterInfo($this->charId); //Get the corporation data from the lookup table $corporation = $lookup->GetCorporationInfo($character->corporation_id); + //Setup the structure helper + $structure = new StructureHelper($this->charId, $character->corporation_id, $esi); + //Get the moon observers from the database $observers = CorpMoonObserver::where([ 'corporation_id' => $character->corporation_id, diff --git a/app/Jobs/Commands/Moons/FetchMoonObserverJob.php b/app/Jobs/Commands/Moons/FetchMoonObserverJob.php index f7f0faf85..75321df2c 100644 --- a/app/Jobs/Commands/Moons/FetchMoonObserverJob.php +++ b/app/Jobs/Commands/Moons/FetchMoonObserverJob.php @@ -83,7 +83,7 @@ class FetchMoonObserverJob implements ShouldQueue $corporation = $lookup->GetCorporationInfo($character->corporation_id); //Delcare the structure helper since we have the necessary data - $structureHelper = new StructureHelper($this->charId, $character->corporation_id); + $structureHelper = new StructureHelper($this->charId, $character->corporation_id, $esi); //Get the mining observers for the corporation's from esi try {