Cleanup logging

This commit is contained in:
David Bomba 2022-11-13 17:27:10 +11:00
parent bc4bc1a885
commit ccfc2f7bfc

View File

@ -45,8 +45,8 @@ class InvoiceObserver
* @return void
*/
public function updated(Invoice $invoice)
{nlog("updated");
$subscriptions = Webhook::where('company_id', $invoice->company_id)
{
$subscriptions = Webhook::where('company_id', $invoice->company_id)
->where('event_id', Webhook::EVENT_UPDATE_INVOICE)
->exists();