refactor(database-management): simplify docker cleanup logic in StopDatabase to enhance readability
This commit is contained in:
@@ -27,11 +27,10 @@ class StopDatabase
|
|||||||
}
|
}
|
||||||
|
|
||||||
$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) {
|
||||||
StopDatabaseProxy::run($database);
|
StopDatabaseProxy::run($database);
|
||||||
|
|||||||
Reference in New Issue
Block a user