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:
parent
9c66c3b741
commit
3f04c1679b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user