1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Return early if no subscription

This commit is contained in:
David Bomba 2023-01-29 18:31:10 +11:00
parent 9c66c3b741
commit 3f04c1679b

View File

@ -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();