mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Refactor for exception handler
This commit is contained in:
parent
19543a19be
commit
0283537c9a
@ -105,7 +105,7 @@ class Handler extends ExceptionHandler
|
|||||||
|
|
||||||
if($exception instanceof ThrottleRequestsException && class_exists(\Modules\Admin\Events\ThrottledExceptionRaised::class)) {
|
if($exception instanceof ThrottleRequestsException && class_exists(\Modules\Admin\Events\ThrottledExceptionRaised::class)) {
|
||||||
$uri = urldecode(request()->getRequestUri());
|
$uri = urldecode(request()->getRequestUri());
|
||||||
event(new \Modules\Admin\Events\ThrottledExceptionRaised(auth()->user()?->account?->key, $uri));
|
event(new \Modules\Admin\Events\ThrottledExceptionRaised(auth()->user()?->account?->key, $uri, request()->ip()));
|
||||||
}
|
}
|
||||||
|
|
||||||
Integration::configureScope(function (Scope $scope): void {
|
Integration::configureScope(function (Scope $scope): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user