refactor(database-management): simplify docker cleanup logic in StopDatabase to enhance readability
This commit is contained in:
parent
923796775f
commit
ede912b1d3
1 changed files with 3 additions and 4 deletions
|
|
@ -27,10 +27,9 @@ public function handle(StandaloneRedis|StandalonePostgresql|StandaloneMongodb|St
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->stopContainer($database, $database->uuid, 30);
|
$this->stopContainer($database, $database->uuid, 30);
|
||||||
if ($isDeleteOperation) {
|
|
||||||
if ($dockerCleanup) {
|
if ($dockerCleanup) {
|
||||||
CleanupDocker::dispatch($server, true);
|
CleanupDocker::dispatch($server, true);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($database->is_public) {
|
if ($database->is_public) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue