From b725861b5528f155830ef16927a1a283f696f944 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 27 Sep 2025 08:20:36 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../components/shared/status-tooltip.tsx | 14 ++++++++++-- .../src/utils/startup/cancell-deployments.ts | 22 +++++++++++-------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/apps/dokploy/components/shared/status-tooltip.tsx b/apps/dokploy/components/shared/status-tooltip.tsx index 07d97cb55..f8c57b8ac 100644 --- a/apps/dokploy/components/shared/status-tooltip.tsx +++ b/apps/dokploy/components/shared/status-tooltip.tsx @@ -7,7 +7,14 @@ import { import { cn } from "@/lib/utils"; interface Props { - status: "running" | "error" | "done" | "idle" | "cancelled" | undefined | null; + status: + | "running" + | "error" + | "done" + | "idle" + | "cancelled" + | undefined + | null; className?: string; } @@ -36,7 +43,10 @@ export const StatusTooltip = ({ status, className }: Props) => { )} {status === "cancelled" && (
)} {status === "running" && ( diff --git a/packages/server/src/utils/startup/cancell-deployments.ts b/packages/server/src/utils/startup/cancell-deployments.ts index 16e76a32c..5c0a871f1 100644 --- a/packages/server/src/utils/startup/cancell-deployments.ts +++ b/packages/server/src/utils/startup/cancell-deployments.ts @@ -3,15 +3,19 @@ import { eq } from "drizzle-orm"; import { db } from "../../db/index"; export const initCancelDeployments = async () => { - try { - console.log("Setting up cancel deployments...."); + try { + console.log("Setting up cancel deployments...."); - const result = await db.update(deployments).set({ - status: "cancelled", - }).where(eq(deployments.status, "running")).returning(); + const result = await db + .update(deployments) + .set({ + status: "cancelled", + }) + .where(eq(deployments.status, "running")) + .returning(); - console.log(`Cancelled ${result.length} deployments`); - } catch (error) { - console.error(error); - } + console.log(`Cancelled ${result.length} deployments`); + } catch (error) { + console.error(error); + } };