Fix Telegram bot Sentry setUser

This commit is contained in:
Matteo Gheza 2023-10-08 12:31:34 +02:00
parent 9844cf1a7f
commit f0d917600b
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class WebhookController extends
$this->user = null;
}
if(app()->bound('sentry')) {
if($this->user && app()->bound('sentry')) {
\Sentry\configureScope(function (Scope $scope): void {
$scope->setUser([
'id' => $this->user->id,