refactor(database-management): simplify docker cleanup logic in StopDatabase to enhance readability

This commit is contained in:
Andras Bacsai
2025-05-30 14:04:15 +02:00
parent 923796775f
commit ede912b1d3

View File

@@ -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);