mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +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
@@ -18,7 +18,7 @@ class Index extends Component
|
||||
public function mount()
|
||||
{
|
||||
if (isInstanceAdmin()) {
|
||||
$settings = InstanceSettings::get();
|
||||
$settings = view()->shared('instanceSettings');
|
||||
$database = StandalonePostgresql::whereName('coolify-db')->first();
|
||||
$s3s = S3Storage::whereTeamId(0)->get() ?? [];
|
||||
if ($database) {
|
||||
|
||||
Reference in new issue
Block a user