forked from invoiceninja/invoiceninja
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance improvements for eager loading (invoiceninja#3584)
* Fixes for Sentry * performance improvements for eager loading
- Loading branch information
Showing
10 changed files
with
41 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,21 +60,22 @@ public function report(Exception $exception) | |
|
||
app('sentry')->configureScope(function (Scope $scope): void { | ||
|
||
if(auth()->guard('contact')->user() && auth()->guard('contact')->user()->account->report_errors) { | ||
if(auth()->guard('contact')->user() && auth()->guard('contact')->user()->company->account->report_errors) { | ||
$scope->setUser([ | ||
'id' => auth()->guard('contact')->user()->account->key, | ||
'id' => auth()->guard('contact')->user()->company->account->key, | ||
'email' => "[email protected]", | ||
'name' => "Anonymous User", | ||
]); | ||
} | ||
else if (auth()->user() && auth()->user()->account->report_errors) { | ||
} | ||
else if (auth()->guard('user')->user() && auth()->user()->company()->account->report_errors) { | ||
$scope->setUser([ | ||
'id' => auth()->user()->account->key, | ||
'email' => "[email protected]", | ||
'name' => "Anonymous User", | ||
]); | ||
} | ||
|
||
|
||
}); | ||
|
||
app('sentry')->captureException($exception); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters