mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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()
|
public function handle()
|
||||||
{
|
{
|
||||||
nlog($this->attempts());
|
|
||||||
|
|
||||||
MultiDB::setDb($this->db);
|
MultiDB::setDb($this->db);
|
||||||
|
|
||||||
$subscription = Webhook::with('company')->find($this->subscription_id);
|
$subscription = Webhook::with('company')->find($this->subscription_id);
|
||||||
|
|
||||||
|
if(!$subscription){
|
||||||
|
$this->fail();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->company = $subscription->company;
|
$this->company = $subscription->company;
|
||||||
|
|
||||||
$this->entity->refresh();
|
$this->entity->refresh();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user