From 1c664d59606604c6d2fccaace628661ee111f430 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 1 Feb 2023 07:21:23 +1100 Subject: [PATCH] remove updateQuietly( --- app/Services/Invoice/MarkInvoiceDeleted.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Invoice/MarkInvoiceDeleted.php b/app/Services/Invoice/MarkInvoiceDeleted.php index e685efe8f15d..145af4ea543b 100644 --- a/app/Services/Invoice/MarkInvoiceDeleted.php +++ b/app/Services/Invoice/MarkInvoiceDeleted.php @@ -156,8 +156,8 @@ class MarkInvoiceDeleted extends AbstractService $this->invoice->number = $number; //wipe references to invoices from related entities. - $this->invoice->tasks()->updateQuietly(['invoice_id' => null]); - $this->invoice->expenses()->updateQuietly(['invoice_id' => null]); + $this->invoice->tasks()->update(['invoice_id' => null]); + $this->invoice->expenses()->update(['invoice_id' => null]); return $this; }