mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
catch exceptions on notification
This commit is contained in:
parent
dddbf27d78
commit
d446773fdd
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue