Fix job dispatching

This commit is contained in:
Deon George
2020-07-16 11:49:20 +10:00
parent d21df1c575
commit ed49ef29b5
2 changed files with 5 additions and 5 deletions

View File

@@ -9,8 +9,6 @@ use App\Jobs\CatalogVerify as Job;
class CatalogVerify extends Command
{
use DispatchesJobs;
/**
* The name and signature of the console command.
*
@@ -44,7 +42,7 @@ class CatalogVerify extends Command
public function handle()
{
if ($this->argument('type')) {
$this->dispatch(new Job($this->argument('type')))->onQueue('scan');
Job::dispatch($this->argument('type'))->onQueue('scan');
} else {
}