stuff
This commit is contained in:
@@ -106,14 +106,15 @@ class GetStructuresCommand extends Command
|
|||||||
Log::critical("Failed to get structure list.");
|
Log::critical("Failed to get structure list.");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if(isset($structures)) {
|
||||||
for($i = 1; $i <= $structures->pages; $i++) {
|
for($i = 1; $i <= $structures->pages; $i++) {
|
||||||
$job = new JobProcessStructure;
|
$job = new JobProcessStructure;
|
||||||
$job->charId = $charId;
|
$job->charId = $charId;
|
||||||
$job->corpId = $corpId;
|
$job->corpId = $corpId;
|
||||||
$job->page = $i;
|
$job->page = $i;
|
||||||
ProcessStructureJob::dispatch($job)->onQueue('structures');
|
ProcessStructureJob::dispatch($job)->onQueue('structures');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Mark the job as finished
|
//Mark the job as finished
|
||||||
$task->SetStopStatus();
|
$task->SetStopStatus();
|
||||||
|
|||||||
Reference in New Issue
Block a user