From 85c149e9adb880df512eb08940cf01288b15149c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 31 Oct 2021 09:07:55 +1100 Subject: [PATCH] add client to payments webhook --- app/Observers/PaymentObserver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Observers/PaymentObserver.php b/app/Observers/PaymentObserver.php index ad2a6f7b8215..5aeb6689ec16 100644 --- a/app/Observers/PaymentObserver.php +++ b/app/Observers/PaymentObserver.php @@ -30,7 +30,7 @@ class PaymentObserver ->exists(); if ($subscriptions) { - WebhookHandler::dispatch(Webhook::EVENT_CREATE_PAYMENT, $payment, $payment->company, 'invoices'); + WebhookHandler::dispatch(Webhook::EVENT_CREATE_PAYMENT, $payment, $payment->company, 'invoices,client'); } } @@ -57,7 +57,7 @@ class PaymentObserver ->exists(); if ($subscriptions) { - WebhookHandler::dispatch(Webhook::EVENT_DELETE_PAYMENT, $payment, $payment->company, 'invoices'); + WebhookHandler::dispatch(Webhook::EVENT_DELETE_PAYMENT, $payment, $payment->company, 'invoices,client'); } }