diff --git a/app/Jobs/Util/WebhookSingle.php b/app/Jobs/Util/WebhookSingle.php index d05f703e04cb..faa0c4fc9ce6 100644 --- a/app/Jobs/Util/WebhookSingle.php +++ b/app/Jobs/Util/WebhookSingle.php @@ -74,12 +74,16 @@ class WebhookSingle implements ShouldQueue */ public function handle() { -nlog($this->attempts()); MultiDB::setDb($this->db); $subscription = Webhook::with('company')->find($this->subscription_id); + if(!$subscription){ + $this->fail(); + return; + } + $this->company = $subscription->company; $this->entity->refresh();