mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
Refactor getRecepients method and fix serverLimitReached method in Team model
This commit is contained in:
@@ -48,7 +48,6 @@ class Team extends Model implements SendsDiscord, SendsEmail
|
|||||||
}
|
}
|
||||||
return explode(',', $recipients);
|
return explode(',', $recipients);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function serverLimitReached() {
|
static public function serverLimitReached() {
|
||||||
$serverLimit = Team::serverLimit();
|
$serverLimit = Team::serverLimit();
|
||||||
$team = currentTeam();
|
$team = currentTeam();
|
||||||
@@ -57,7 +56,7 @@ class Team extends Model implements SendsDiscord, SendsEmail
|
|||||||
}
|
}
|
||||||
static public function serverLimit()
|
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
|
public function limits(): Attribute
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user