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,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) {