Fix Telegram bot Sentry setUser
This commit is contained in:
parent
9844cf1a7f
commit
f0d917600b
|
@ -34,7 +34,7 @@ class WebhookController extends
|
||||||
$this->user = null;
|
$this->user = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(app()->bound('sentry')) {
|
if($this->user && app()->bound('sentry')) {
|
||||||
\Sentry\configureScope(function (Scope $scope): void {
|
\Sentry\configureScope(function (Scope $scope): void {
|
||||||
$scope->setUser([
|
$scope->setUser([
|
||||||
'id' => $this->user->id,
|
'id' => $this->user->id,
|
||||||
|
|
Loading…
Reference in New Issue