mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 06:15:13 +00:00
refactor: only get instanceSettings once from db
This commit is contained in:
1 parent
21612cccf7
commit
88f33be5b6
23 files changed
+54
-51
No files matched your search
@@ -301,7 +301,7 @@ class ServersController extends Controller
|
||||
$projects = Project::where('team_id', $teamId)->get();
|
||||
$domains = collect();
|
||||
$applications = $projects->pluck('applications')->flatten();
|
||||
$settings = InstanceSettings::get();
|
||||
$settings = view()->shared('instanceSettings');
|
||||
if ($applications->count() > 0) {
|
||||
foreach ($applications as $application) {
|
||||
$ip = $application->destination->server->ip;
|
||||
|
||||
Reference in new issue
Block a user