Fix job dispatching
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
Reference in New Issue
Block a user