From f3856722dab7c8aeb863f1de99d09e989e83c069 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 20 Jul 2025 18:45:18 -0600 Subject: [PATCH] feat(project): add refreshToken to application and compose data retrieval - Included refreshToken in the data returned from findApplicationById and findComposeById functions to enhance application state management. --- apps/dokploy/server/api/routers/project.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/server/api/routers/project.ts b/apps/dokploy/server/api/routers/project.ts index 5744a103e..0502273e9 100644 --- a/apps/dokploy/server/api/routers/project.ts +++ b/apps/dokploy/server/api/routers/project.ts @@ -361,6 +361,7 @@ export const projectRouter = createTRPCRouter({ previewDeployments, mounts, appName, + refreshToken, ...application } = await findApplicationById(id); const newAppName = appName.substring( @@ -603,8 +604,14 @@ export const projectRouter = createTRPCRouter({ break; } case "compose": { - const { composeId, mounts, domains, appName, ...compose } = - await findComposeById(id); + const { + composeId, + mounts, + domains, + appName, + refreshToken, + ...compose + } = await findComposeById(id); const newAppName = appName.substring( 0,