mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 16:15:17 +00:00
refactor(database-management): simplify docker cleanup logic in StopDatabase to enhance readability
This commit is contained in:
1 parent
923796775f
commit
ede912b1d3
1 file changed
+3
-4
@@ -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