updated some backend logic

This commit is contained in:
2019-08-26 18:40:48 -05:00
parent 4be3f9b33d
commit 0d4ae999d2
6 changed files with 64 additions and 44 deletions
+3 -3
View File
@@ -76,7 +76,7 @@ class GetAssetsCommand extends Command
$assetScope = $esiHelper->HaveEsiScope($config['primary'], 'esi-assets.read_corporation_assets.v1');
if($assetScope == false) {
Log::critical("Scope check for esi failed.");
Log::critical("Scope check for esi-assets.read_corporation_assets.v1 failed.");
return null;
}
@@ -87,12 +87,12 @@ class GetAssetsCommand extends Command
$configuration->cache = NullCache::class;
//Get the refresh token from the database
$token = EsiToken::where(['character_id' => $charId])->get(['refresh_token']);
$token = $esiHelper->GetRefreshToken($charId);
//Create the authentication container
$authentication = new EsiAuthentication([
'client_id' => $config['client_id'],
'secret' => $config['secret'],
'refresh_token' => $token[0]->refresh_token,
'refresh_token' => $token,
]);
$esi = new Eseye($authentication);