Fixes for null exception in failed method

This commit is contained in:
David Bomba 2023-01-30 11:12:28 +11:00
parent e750f45750
commit 5c16821fb9

View File

@ -244,10 +244,10 @@ class WebhookSingle implements ShouldQueue
return $this->company->clients()->first(); return $this->company->clients()->first();
} }
public function failed($exception) public function failed($exception = null)
{ {
if($exception)
nlog(print_r($exception->getMessage(), 1)); nlog($exception->getMessage());
} }
} }