From dc3d536f0b651eb4382a83fffca1639fc0418e5f Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 4 Jul 2019 23:18:22 -0500 Subject: [PATCH] assetes --- app/Console/Commands/Assets/GetAssets.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/Assets/GetAssets.php b/app/Console/Commands/Assets/GetAssets.php index 2b9af270b..f8e37e298 100644 --- a/app/Console/Commands/Assets/GetAssets.php +++ b/app/Console/Commands/Assets/GetAssets.php @@ -97,15 +97,16 @@ class GetAssetsCommand extends Command $esi = new Eseye($authentication); try { - $assets = $esi->invoke('get', '/corporations/{corporation_id}/assets/', [ + $assets = $esi->page(1) + ->invoke('get', '/corporations/{corporation_id}/assets/', [ 'corporation_id' => $corpId, ]); + dd($assets); } catch (RequestFailedException $e) { - // + Log::critical("Failed to get asset list."); + return null; } - dd($assets); - for($i = 1; $i <= $assets->pages; $i++) { $job = new JobProcessAsset; $job->charId = $charId;