removed model for process structure job

This commit is contained in:
2020-05-10 23:25:06 -05:00
parent 6f00ffe0e8
commit 806b872465
3 changed files with 5 additions and 12 deletions

View File

@@ -15,7 +15,6 @@ use Seat\Eseye\Exceptions\RequestFailedException;
use App\Jobs\ProcessStructureJob;
//Models
use App\Models\Jobs\JobProcessStructure;
use App\Models\Esi\EsiScope;
use App\Models\Esi\EsiToken;
@@ -106,11 +105,7 @@ class GetStructuresCommand extends Command
$totalPages = $structures->pages;
for($i = 1; $i <= $totalPages; $i++) {
$job = new JobProcessStructure;
$job->charId = $charId;
$job->corpId = $corpId;
$job->page = $currentPage;
ProcessStructureJob::dispatch($job)->onQueue('structures');
ProcessStructureJob::dispatch($charId, $corpId, $currentPage)->onQueue('structures');
}
//Mark the job as finished