From dd8f85a356796826b82d915d9ab50737d6759fd7 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 12 Dec 2019 00:37:03 -0600 Subject: [PATCH] esi lookup helper --- app/Library/Esi/Esi.php | 1 - app/Library/Lookups/LookupHelper.php | 11 ++--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/Library/Esi/Esi.php b/app/Library/Esi/Esi.php index 9cc5dcac0..3610cf0d7 100644 --- a/app/Library/Esi/Esi.php +++ b/app/Library/Esi/Esi.php @@ -183,7 +183,6 @@ class Esi { $authentication = new EsiAuthentication([ 'client_id' => $config['client_id'], 'secret' => $config['secret'], - 'refresh_token' => 'N/A', ]); } else { $authentication = new EsiAuthentication([ diff --git a/app/Library/Lookups/LookupHelper.php b/app/Library/Lookups/LookupHelper.php index 51bec0ffe..1efbe55b5 100644 --- a/app/Library/Lookups/LookupHelper.php +++ b/app/Library/Lookups/LookupHelper.php @@ -31,16 +31,9 @@ class LookupHelper { //Construct public function __construct() { //Declare a variable for use by the construct - //$esiHelper = new Esi; - //$this->esi = $esiHelper->SetupEsiAuthentication(); - $config = config('esi'); - - $authentication = new EsiAuthentication([ - 'client_id' => $config['client_id'], - 'secret' => $config['secret'], - ]); + $esiHelper = new Esi; - $this->esi = new Eseye($authentication); + $this->esi = $esiHelper->SetupEsiAuthentication(); } public function ItemIdToName($itemId) {