From 36e131cf1249f97efc2aef59de71af9af4cc4a04 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 5 Apr 2026 19:38:19 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../api/deploy/compose/[refreshToken].ts | 24 +++++-------------- apps/dokploy/pages/api/deploy/github.ts | 4 +--- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts b/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts index e22149f35..d036a4b6f 100644 --- a/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts +++ b/apps/dokploy/pages/api/deploy/compose/[refreshToken].ts @@ -54,9 +54,7 @@ export default async function handler( if (sourceType === "github") { const branchName = extractBranchName(req.headers, req.body); const normalizedCommits = - req.body?.commits?.flatMap( - (commit: any) => commit.modified, - ) || []; + req.body?.commits?.flatMap((commit: any) => commit.modified) || []; const shouldDeployPaths = shouldDeploy( composeResult.watchPaths, @@ -75,9 +73,7 @@ export default async function handler( } else if (sourceType === "gitlab") { const branchName = extractBranchName(req.headers, req.body); const normalizedCommits = - req.body?.commits?.flatMap( - (commit: any) => commit.modified, - ) || []; + req.body?.commits?.flatMap((commit: any) => commit.modified) || []; const shouldDeployPaths = shouldDeploy( composeResult.watchPaths, @@ -127,19 +123,13 @@ export default async function handler( if (provider === "github") { normalizedCommits = - req.body?.commits?.flatMap( - (commit: any) => commit.modified, - ) || []; + req.body?.commits?.flatMap((commit: any) => commit.modified) || []; } else if (provider === "gitlab") { normalizedCommits = - req.body?.commits?.flatMap( - (commit: any) => commit.modified, - ) || []; + req.body?.commits?.flatMap((commit: any) => commit.modified) || []; } else if (provider === "gitea") { normalizedCommits = - req.body?.commits?.flatMap( - (commit: any) => commit.modified, - ) || []; + req.body?.commits?.flatMap((commit: any) => commit.modified) || []; } const shouldDeployPaths = shouldDeploy( @@ -155,9 +145,7 @@ export default async function handler( const branchName = extractBranchName(req.headers, req.body); const normalizedCommits = - req.body?.commits?.flatMap( - (commit: any) => commit.modified, - ) || []; + req.body?.commits?.flatMap((commit: any) => commit.modified) || []; const shouldDeployPaths = shouldDeploy( composeResult.watchPaths, diff --git a/apps/dokploy/pages/api/deploy/github.ts b/apps/dokploy/pages/api/deploy/github.ts index 82106ef2c..84480a6bb 100644 --- a/apps/dokploy/pages/api/deploy/github.ts +++ b/apps/dokploy/pages/api/deploy/github.ts @@ -214,9 +214,7 @@ export default async function handler( const deploymentHash = extractHash(req.headers, req.body); const owner = githubBody?.repository?.owner?.name; const normalizedCommits = - githubBody?.commits?.flatMap( - (commit: any) => commit.modified, - ) || []; + githubBody?.commits?.flatMap((commit: any) => commit.modified) || []; const apps = await db.query.applications.findMany({ where: and(