From 0694940507e3d6a564ccccd70cbff803266bd0cf Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 21 Mar 2021 01:11:46 +0900 Subject: [PATCH] ledger stuff for users --- app/Http/Controllers/MiningTaxes/MiningTaxesController.php | 4 ++-- app/Library/Helpers/LookupHelper.php | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php index e8e0c9311..bc357a678 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesController.php @@ -234,8 +234,8 @@ class MiningTaxesController extends Controller $character = $lookup->GetCharacterInfo($config['primary']); //Get the corporation information from the character id - $corpInfo = $lookup->GetCorporationInfo(auth()->user()->getId()); - dd($corpInfo); + $corpInfo = $lookup->GetCorporationInfo($character->corporation_id); + //Get the observers from the database $observers = Observer::all(); diff --git a/app/Library/Helpers/LookupHelper.php b/app/Library/Helpers/LookupHelper.php index 19a95a861..943cff7c5 100644 --- a/app/Library/Helpers/LookupHelper.php +++ b/app/Library/Helpers/LookupHelper.php @@ -29,9 +29,7 @@ class LookupHelper { public function __construct() { //Declare a variable for use by the construct $esiHelper = new Esi; - $config = config('esi'); - $refreshToken = $esiHelper->GetRefreshToken($config['primary']); - $this->esi = $esiHelper->SetupEsiAuthentication($refreshToken); + $this->esi = $esiHelper->SetupEsiAuthentication(); } public function ItemNameToId($itemName) {