diff --git a/app/Models/Team.php b/app/Models/Team.php index 17e5e9ac6..8617bfffd 100644 --- a/app/Models/Team.php +++ b/app/Models/Team.php @@ -48,7 +48,6 @@ public function getRecepients($notification) } return explode(',', $recipients); } - static public function serverLimitReached() { $serverLimit = Team::serverLimit(); $team = currentTeam(); @@ -57,7 +56,7 @@ static public function serverLimitReached() { } static public function serverLimit() { - return data_get(Team::find(currentTeam()->id), 'limits.serverLimit', 0); + return Team::find(currentTeam()->id)->limits['serverLimit']; } public function limits(): Attribute {