Skip to content

Commit

Permalink
chore: Update ServerLimitCheckJob.php to handle missing serverLimit v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
andrasbacsai committed May 15, 2024
1 parent 1d9d6c8 commit b9a755d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/ServerLimitCheckJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function handle()
try {
$servers = $this->team->servers;
$servers_count = $servers->count();
$limit = $this->team->limits['serverLimit'];
$limit = data_get($this->team->limits, 'serverLimit', 2);
$number_of_servers_to_disable = $servers_count - $limit;
ray('ServerLimitCheckJob', $this->team->uuid, $servers_count, $limit, $number_of_servers_to_disable);
if ($number_of_servers_to_disable > 0) {
Expand Down

0 comments on commit b9a755d

Please sign in to comment.