diff --git a/app/Library/Structures/StructureHelper.php b/app/Library/Structures/StructureHelper.php index 0d7fa14a8..0c8aa6205 100644 --- a/app/Library/Structures/StructureHelper.php +++ b/app/Library/Structures/StructureHelper.php @@ -52,7 +52,7 @@ class StructureHelper { //Setup the esi authentication container $config = config('esi'); //Get the refresh token from the database - $token = EsiToken::where(['character_id' => $charId])->get(['refresh_token']); + $token = EsiToken::where(['character_id' => $this->charId])->get(['refresh_token']); $authentication = new EsiAuthentication([ 'client_id' => $config['client_id'], 'secret' => $config['secret'],