Fixed failed jobs table

This commit is contained in:
Constantin Graf
2024-07-03 17:09:45 +02:00
committed by Constantin Graf
parent 4c2748ff50
commit 7fd5d25781
3 changed files with 50 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ class TestJobCommand extends Command
*
* @var string
*/
protected $signature = 'test:job';
protected $signature = 'test:job {--fail}';
/**
* The console command description.
@@ -30,7 +30,9 @@ class TestJobCommand extends Command
public function handle(): int
{
$user = User::firstOrFail();
TestJob::dispatch($user, 'Test job message.');
$fail = (bool) $this->option('fail');
TestJob::dispatch($user, 'Test job message.', $fail);
return self::SUCCESS;
}