make things more clear

This commit is contained in:
ayntk-ai committed 2024-08-27 14:19:37 +02:00
1 parent 9040f5d2a1
commit 4726676248
5 files changed
+29 -25

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ class DeleteService
{
use AsAction;
public function handle(Service $service, bool $deleteConfigurations, bool $deleteVolumes, bool $deleteImages, bool $deleteConnectedNetworks)
public function handle(Service $service, bool $deleteConfigurations, bool $deleteVolumes, bool $dockerCleanup, bool $deleteConnectedNetworks)
{
try {
$server = data_get($service, 'server');
@@ -69,7 +69,7 @@ class DeleteService
$service->tags()->detach();
$service->forceDelete();
if ($deleteImages) {
if ($dockerCleanup) {
CleanupDocker::run($server, true);
}
}