mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 07:12:33 +00:00
fix(service): handle missing service database and redirect to configuration
This commit is contained in:
1 parent
360a82ec5d
commit
9466ad4a48
1 file changed
+7
@@ -46,6 +46,13 @@ class Index extends Component
|
||||
$this->serviceApplication->getFilesFromServer();
|
||||
} else {
|
||||
$this->serviceDatabase = $this->service->databases()->whereUuid($this->parameters['stack_service_uuid'])->first();
|
||||
if (! $this->serviceDatabase) {
|
||||
return redirect()->route('project.service.configuration', [
|
||||
'project_uuid' => $this->parameters['project_uuid'],
|
||||
'environment_uuid' => $this->parameters['environment_uuid'],
|
||||
'service_uuid' => $this->parameters['service_uuid'],
|
||||
]);
|
||||
}
|
||||
$this->serviceDatabase->getFilesFromServer();
|
||||
}
|
||||
$this->s3s = currentTeam()->s3s;
|
||||
|
||||
Reference in new issue
Block a user