From d08ded395a01bb9e71f0501bb0be65d98941ab5d Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 3 Jan 2022 15:50:17 +0800 Subject: [PATCH] fix order status count --- .../Commands/CurlYdOrderListCommand.php | 5 +-- app/Job/CurlYdOrderListJob.php | 38 ------------------- 2 files changed, 2 insertions(+), 41 deletions(-) delete mode 100644 app/Job/CurlYdOrderListJob.php diff --git a/app/Console/Commands/CurlYdOrderListCommand.php b/app/Console/Commands/CurlYdOrderListCommand.php index 5f913cd1..318139e8 100644 --- a/app/Console/Commands/CurlYdOrderListCommand.php +++ b/app/Console/Commands/CurlYdOrderListCommand.php @@ -2,11 +2,10 @@ namespace App\Console\Commands; -use App\Models\State; +use App\Classes\Jobs\FetchOrdersFromYDPortalJob; use App\Http\Helpers\General; use Illuminate\Console\Command; -use App\Jobs\CurlYdOrderListJob; class CurlYdOrderListCommand extends Command { @@ -42,6 +41,6 @@ class CurlYdOrderListCommand extends Command */ public function handle() { - return CurlYdOrderListJob::dispatch(); + return FetchOrdersFromYDPortalJob::dispatch(); } } diff --git a/app/Job/CurlYdOrderListJob.php b/app/Job/CurlYdOrderListJob.php deleted file mode 100644 index 378ada24..00000000 --- a/app/Job/CurlYdOrderListJob.php +++ /dev/null @@ -1,38 +0,0 @@ -make(FetchOrderListsFromYdPortalProcessor::class))->execute(); - } -}