minor fixes

This commit is contained in:
David Bomba 2021-09-20 20:10:07 +10:00
parent a51436f224
commit 3d28159702
3 changed files with 5 additions and 5 deletions

View File

@ -514,7 +514,7 @@ class CompanyExport implements ShouldQueue
$nmo->company = $company_reference; $nmo->company = $company_reference;
$nmo->settings = $this->company->settings; $nmo->settings = $this->company->settings;
NinjaMailerJob::dispatch($nmo); NinjaMailerJob::dispatch($nmo, true);
if(Ninja::isHosted()){ if(Ninja::isHosted()){
sleep(3); sleep(3);

View File

@ -30,7 +30,7 @@ class InvoiceObserver
public function created(Invoice $invoice) 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) ->where('event_id', Webhook::EVENT_CREATE_INVOICE)
->exists(); ->exists();
@ -47,7 +47,7 @@ class InvoiceObserver
*/ */
public function updated(Invoice $invoice) 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) ->where('event_id', Webhook::EVENT_UPDATE_INVOICE)
->exists(); ->exists();
@ -65,7 +65,7 @@ class InvoiceObserver
*/ */
public function deleted(Invoice $invoice) 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) ->where('event_id', Webhook::EVENT_DELETE_INVOICE)
->exists(); ->exists();

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html data-report-errors="{{ $report_errors }}" data-rc="{{ $rc }}" data-build="{{ $build }}" user-agent="{{ $user_agent }}"> <html data-report-errors="{{ $report_errors }}" data-rc="{{ $rc }}" data-user-agent="{{ $user_agent }}">
<head> <head>
<!-- Source: https://github.com/invoiceninja/invoiceninja --> <!-- Source: https://github.com/invoiceninja/invoiceninja -->
<!-- Version: {{ config('ninja.app_version') }} --> <!-- Version: {{ config('ninja.app_version') }} -->