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.
This commit is contained in:
Mauricio Siu
2025-07-20 18:45:18 -06:00
parent fdc524d79d
commit f3856722da

View File

@@ -361,6 +361,7 @@ export const projectRouter = createTRPCRouter({
previewDeployments, previewDeployments,
mounts, mounts,
appName, appName,
refreshToken,
...application ...application
} = await findApplicationById(id); } = await findApplicationById(id);
const newAppName = appName.substring( const newAppName = appName.substring(
@@ -603,8 +604,14 @@ export const projectRouter = createTRPCRouter({
break; break;
} }
case "compose": { case "compose": {
const { composeId, mounts, domains, appName, ...compose } = const {
await findComposeById(id); composeId,
mounts,
domains,
appName,
refreshToken,
...compose
} = await findComposeById(id);
const newAppName = appName.substring( const newAppName = appName.substring(
0, 0,