refactor(database-management): simplify docker cleanup logic in StopDatabase to enhance readability
This commit is contained in:
@@ -27,10 +27,9 @@ class StopDatabase
|
||||
}
|
||||
|
||||
$this->stopContainer($database, $database->uuid, 30);
|
||||
if ($isDeleteOperation) {
|
||||
if ($dockerCleanup) {
|
||||
CleanupDocker::dispatch($server, true);
|
||||
}
|
||||
|
||||
if ($dockerCleanup) {
|
||||
CleanupDocker::dispatch($server, true);
|
||||
}
|
||||
|
||||
if ($database->is_public) {
|
||||
|
||||
Reference in New Issue
Block a user