fix
This commit is contained in:
@@ -18,7 +18,7 @@ class DatabaseProxyStopped implements ShouldBroadcast
|
|||||||
public function __construct($teamId = null)
|
public function __construct($teamId = null)
|
||||||
{
|
{
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
$teamId = Auth::user()->currentTeam()->id ?? null;
|
$teamId = Auth::user()?->currentTeam()?->id ?? null;
|
||||||
}
|
}
|
||||||
if (is_null($teamId)) {
|
if (is_null($teamId)) {
|
||||||
throw new \Exception('Team id is null');
|
throw new \Exception('Team id is null');
|
||||||
|
|||||||
Reference in New Issue
Block a user