updated assets in order to not use a model to get rid of extra models that we don't need

This commit is contained in:
2020-05-10 23:13:05 -05:00
parent 7a89b65b15
commit ad6a90d623
2 changed files with 5 additions and 9 deletions
+1 -5
View File
@@ -93,11 +93,7 @@ class GetAssetsCommand extends Command
$pages = $assets->pages;
for($i = 1; $i <= $pages; $i++) {
$job = new JobProcessAsset;
$job->charId = $charId;
$job->corpId = $corpId;
$job->page = $i;
ProcessAssetsJob::dispatch($job)->onQueue('assets');
ProcessAssetsJob::dispatch($charId, $corpId, $i)->onQueue('assets');
}
}
}
+4 -4
View File
@@ -58,11 +58,11 @@ class ProcessAssetsJob implements ShouldQueue
*
* @return void
*/
public function __construct(JobProcessAsset $jpa)
public function __construct($charId, $corpId, $page)
{
$this->charId = $jpa->charId;
$this->corpId = $jpa->corpId;
$this->page = $jpa->page;
$this->charId = $charId;
$this->corpId = $corpId;
$this->page = $page;
//Set the connection for the job
$this->connection = 'redis';