Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

chore(deletion): rename isDeleteOperation to deleteConnectedNetworks

peaklabs-devdaa96c27a704
diff --git a/app/Actions/Service/StopService.php b/app/Actions/Service/StopService.php
index 190b8885d8..3f4e964799 100644
--- a/app/Actions/Service/StopService.php
+++ b/app/Actions/Service/StopService.php
@@ -14,7 +14,7 @@ class StopService
public string $jobQueue = 'high';
- public function handle(Service $service, bool $isDeleteOperation = false, bool $dockerCleanup = true)
+ public function handle(Service $service, bool $deleteConnectedNetworks = false, bool $dockerCleanup = true)
{
try {
$server = $service->destination->server;
@@ -36,7 +36,7 @@ class StopService
$this->stopContainersInParallel($containersToStop, $server);
}
- if ($isDeleteOperation) {
+ if ($deleteConnectedNetworks) {
$service->deleteConnectedNetworks();
}
if ($dockerCleanup) {