Fix job failed error type
This commit is contained in:
parent
65062f3c16
commit
388148356b
|
@ -54,7 +54,7 @@ class NotifyUsersManualModeOn implements ShouldQueue
|
|||
}
|
||||
}
|
||||
|
||||
public function failed(\Exception $exception)
|
||||
public function failed(\Error|\TypeError $exception = null)
|
||||
{
|
||||
if (app()->bound('sentry')) {
|
||||
app('sentry')->captureException($exception);
|
||||
|
|
|
@ -50,7 +50,7 @@ class ResetAvailabilityMinutes implements ShouldQueue
|
|||
}
|
||||
}
|
||||
|
||||
public function failed(\Exception $exception)
|
||||
public function failed(\Error|\TypeError $exception = null)
|
||||
{
|
||||
if (app()->bound('sentry')) {
|
||||
app('sentry')->captureException($exception);
|
||||
|
|
|
@ -97,9 +97,9 @@ class UpdateAvailabilityWithSchedulesJob implements ShouldQueue
|
|||
}
|
||||
}
|
||||
|
||||
public function failed(\Exception $exception)
|
||||
public function failed(\Error|\TypeError $exception = null)
|
||||
{
|
||||
if (app()->bound('sentry')) {
|
||||
if (app()->bound('sentry') && !is_null($exception)) {
|
||||
app('sentry')->captureException($exception);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue