From 53f38d8cb71af65150d918b85b652bbc787e053e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 15 Nov 2022 07:23:14 +1100 Subject: [PATCH] Handle Cancellation Webhook Event --- app/Services/Invoice/HandleCancellation.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/Invoice/HandleCancellation.php b/app/Services/Invoice/HandleCancellation.php index 76b7545229c4..903c5edec405 100644 --- a/app/Services/Invoice/HandleCancellation.php +++ b/app/Services/Invoice/HandleCancellation.php @@ -57,6 +57,8 @@ class HandleCancellation extends AbstractService event(new InvoiceWasCancelled($this->invoice, $this->invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null))); + event('eloquent.updated: App\Models\Invoice', $this->invoice); + $transaction = [ 'invoice' => $this->invoice->transaction_event(), 'payment' => [],