From d446773fdd0a6782583a9e7fd384888996fdc5e5 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Thu, 19 Sep 2024 14:05:48 -0500 Subject: [PATCH] catch exceptions on notification --- app/Http/Controllers/Account/AcceptanceController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Account/AcceptanceController.php b/app/Http/Controllers/Account/AcceptanceController.php index 6d84861fb0..c6cdf9bbf8 100644 --- a/app/Http/Controllers/Account/AcceptanceController.php +++ b/app/Http/Controllers/Account/AcceptanceController.php @@ -237,7 +237,11 @@ class AcceptanceController extends Controller } $acceptance->accept($sig_filename, $item->getEula(), $pdf_filename, $request->input('note')); - $acceptance->notify(new AcceptanceAssetAcceptedNotification($data)); + try { + $acceptance->notify(new AcceptanceAssetAcceptedNotification($data)); + } catch (\Exception $e) { + Log::error($e); + } event(new CheckoutAccepted($acceptance)); $return_msg = trans('admin/users/message.accepted');