diff --git a/app/Console/Commands/Eve/ItemPricesUpdateCommand.php b/app/Console/Commands/Eve/ItemPricesUpdateCommand.php index f201feb5c..275fb0c70 100644 --- a/app/Console/Commands/Eve/ItemPricesUpdateCommand.php +++ b/app/Console/Commands/Eve/ItemPricesUpdateCommand.php @@ -9,6 +9,9 @@ use Log; use Commands\Library\CommandHelper; use App\Library\Moons\MoonCalc; +//Job +use App\Jobs\Eve\ItemPricesUpdateJob; + class ItemPricesUpdateCommand extends Command { /** @@ -45,9 +48,7 @@ class ItemPricesUpdateCommand extends Command $task = new CommandHelper('ItemPriceUpdate'); $task->SetStartStatus(); - $moonHelper = new MoonCalc; - - $moonHelper->FetchNewPrices(); + ItemPricesUpdateJob::dispatch(); $task->SetStopStatus(); } diff --git a/app/Jobs/Commands/Eve/ItemPricesUpdateJob.php b/app/Jobs/Commands/Eve/ItemPricesUpdateJob.php new file mode 100644 index 000000000..221f46284 --- /dev/null +++ b/app/Jobs/Commands/Eve/ItemPricesUpdateJob.php @@ -0,0 +1,40 @@ +FetchNewPrices(); + } +}