From d3702d22f223ca0e1bc2df1ca006a37639a17991 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 5 Jul 2025 16:47:44 -0600 Subject: [PATCH] refactor(application): remove redundant service stop logic - Eliminated the conditional logic for stopping services based on serverId, streamlining the application status update process. - This change enhances code clarity and maintains focus on application state management. --- apps/dokploy/server/api/routers/application.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/dokploy/server/api/routers/application.ts b/apps/dokploy/server/api/routers/application.ts index dfdf71d07..fed80ef80 100644 --- a/apps/dokploy/server/api/routers/application.ts +++ b/apps/dokploy/server/api/routers/application.ts @@ -184,12 +184,6 @@ export const applicationRouter = createTRPCRouter({ }); } - if (application.serverId) { - await stopServiceRemote(application.serverId, input.appName); - } else { - await stopService(input.appName); - } - await updateApplicationStatus(input.applicationId, "idle"); await mechanizeDockerContainer(application); await updateApplicationStatus(input.applicationId, "done");