fix: db status check

This commit is contained in:
Andras Bacsai 2023-12-11 15:23:41 +01:00
parent fe6e76ad0d
commit 47202a7951

View File

@ -79,11 +79,11 @@ public function settings()
if (isInstanceAdmin()) {
$settings = InstanceSettings::get();
$database = StandalonePostgresql::whereName('coolify-db')->first();
if ($database->status !== 'running') {
$database->status = 'running';
$database->save();
}
if ($database) {
if ($database->status !== 'running') {
$database->status = 'running';
$database->save();
}
$s3s = S3Storage::whereTeamId(0)->get();
}
return view('settings.configuration', [