Merge pull request #15532 from spencerrlongg/bug/15253

Catch Exceptions on Checkout Notification
This commit is contained in:
snipe 2024-09-19 21:54:03 +01:00 committed by GitHub
commit cdb7ccb8f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -237,7 +237,11 @@ class AcceptanceController extends Controller
} }
$acceptance->accept($sig_filename, $item->getEula(), $pdf_filename, $request->input('note')); $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)); event(new CheckoutAccepted($acceptance));
$return_msg = trans('admin/users/message.accepted'); $return_msg = trans('admin/users/message.accepted');