diff --git a/app/Jobs/Company/CompanyExport.php b/app/Jobs/Company/CompanyExport.php index 77f92407693a..571913ee0438 100644 --- a/app/Jobs/Company/CompanyExport.php +++ b/app/Jobs/Company/CompanyExport.php @@ -514,7 +514,7 @@ class CompanyExport implements ShouldQueue $nmo->company = $company_reference; $nmo->settings = $this->company->settings; - NinjaMailerJob::dispatch($nmo); + NinjaMailerJob::dispatch($nmo, true); if(Ninja::isHosted()){ sleep(3); diff --git a/app/Observers/InvoiceObserver.php b/app/Observers/InvoiceObserver.php index 606d37c50a80..609d1e912291 100644 --- a/app/Observers/InvoiceObserver.php +++ b/app/Observers/InvoiceObserver.php @@ -30,7 +30,7 @@ class InvoiceObserver public function created(Invoice $invoice) { - $subscriptions = Webhook::where('company_id', $invoice->company->id) + $subscriptions = Webhook::where('company_id', $invoice->company_id) ->where('event_id', Webhook::EVENT_CREATE_INVOICE) ->exists(); @@ -47,7 +47,7 @@ class InvoiceObserver */ public function updated(Invoice $invoice) { - $subscriptions = Webhook::where('company_id', $invoice->company->id) + $subscriptions = Webhook::where('company_id', $invoice->company_id) ->where('event_id', Webhook::EVENT_UPDATE_INVOICE) ->exists(); @@ -65,7 +65,7 @@ class InvoiceObserver */ public function deleted(Invoice $invoice) { - $subscriptions = Webhook::where('company_id', $invoice->company->id) + $subscriptions = Webhook::where('company_id', $invoice->company_id) ->where('event_id', Webhook::EVENT_DELETE_INVOICE) ->exists(); diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 03f70989f814..bf4de0c63056 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -1,5 +1,5 @@ - +