diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 3ad8692e..55be0362 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -28,15 +28,15 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule) { - $schedule->command('command:curlYdOrderListCommand') + $schedule->command('command:curlVTCommand') ->cron('0 9-18/3 * * *') ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlyd.log'); + ->appendOutputTo (storage_path().'/logs/curlvt.log'); - $schedule->command('command:curlVTCommand') + $schedule->command('command:curlYdOrderListCommand') ->cron('30 9-18/3 * * *') ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlvt.log'); + ->appendOutputTo (storage_path().'/logs/curlyd.log'); } diff --git a/routes/web.php b/routes/web.php index 20ab0df6..fba7ac9f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -93,13 +93,12 @@ Route::get('/customer/{marking}', function ($marking) { Route::get('/orders/refresh', function(){ - FetchOrdersFromYDPortalJob::dispatch(); - FetchWarehouseReceiveListFromVTPortalJob::withChain([ new FetchLoadedContainersFromVTPortalJob, new FetchPackingListFromVTPortalJob, new FetchContainersStatusUpdateFromVTPortalJob, - new FetchDeliveryListFromVTPortalJob + new FetchDeliveryListFromVTPortalJob, + new FetchOrdersFromYDPortalJob ])->dispatch(); return redirect('orders');