This commit is contained in:
2019-07-05 01:19:46 -05:00
parent 2e7369ee51
commit ff545f4dbc

View File

@@ -108,7 +108,7 @@ class GetAssetsCommand extends Command
} }
$pages = $assets->pages; $pages = $assets->pages;
/*
for($i = 1; $i < $pages; $i++) { for($i = 1; $i < $pages; $i++) {
$job = new JobProcessAsset; $job = new JobProcessAsset;
$job->charId = $charId; $job->charId = $charId;
@@ -116,5 +116,16 @@ class GetAssetsCommand extends Command
$job->page = $i; $job->page = $i;
ProcessAssetsJob::dispatch($job)->onQueue('assets'); ProcessAssetsJob::dispatch($job)->onQueue('assets');
} }
*/
for($i = 1; $i < $pages; $i++) {
$aHelper = new AssetHelper($charId, $corpId);
//Get a page of assets
$assets = $aHelper->GetAssetsByPage($i);
foreach($assets as $asset) {
$aHelper->StoreNewAsset($asset);
}
}
} }
} }