Skip to content

Commit

Permalink
Fallback array for retried_by (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jul 25, 2022
1 parent 4193939 commit 09b2031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/FailedJobsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function decode($job)

$job->context = json_decode($job->context);

$job->retried_by = collect(json_decode($job->retried_by))
$job->retried_by = collect(! is_null($job->retried_by) ? json_decode($job->retried_by) : [])
->sortByDesc('retried_at')->values();

return $job;
Expand Down

0 comments on commit 09b2031

Please sign in to comment.