This commit is contained in:
2019-05-30 23:42:01 -05:00
parent 3ef3b12197
commit 545480056a

View File

@@ -3,12 +3,8 @@
namespace App\Console\Commands; namespace App\Console\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use DB;
use Log; use Log;
//Job
use App\Jobs\ProcessStructureJob;
//Library //Library
use App\Library\Structures\StructureHelper; use App\Library\Structures\StructureHelper;
use App\Library\Esi\Esi; use App\Library\Esi\Esi;
@@ -18,6 +14,9 @@ use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Eseye; use Seat\Eseye\Eseye;
use Commands\Library\CommandHelper; use Commands\Library\CommandHelper;
//Job
use App\Jobs\ProcessStructureJob;
//Models //Models
use App\Models\Jobs\JobProcessStructure; use App\Models\Jobs\JobProcessStructure;
use App\Models\Esi\EsiScope; use App\Models\Esi\EsiScope;
@@ -124,7 +123,6 @@ class GetStructuresCommand extends Command
$totalPages = $structures->pages; $totalPages = $structures->pages;
} }
dd($structures);
//For each structure we retrieve dispatch a job to process it. //For each structure we retrieve dispatch a job to process it.
foreach($structures as $structure) { foreach($structures as $structure) {
$job = new JobProcessStructure; $job = new JobProcessStructure;