From fecffac573ee34e5348a193cd6250b4938305aa0 Mon Sep 17 00:00:00 2001
From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
Date: Sat, 5 Oct 2024 14:27:00 -0600
Subject: [PATCH] refactor: test rollback
---
apps/dokploy/pages/index.tsx | 2 +-
apps/dokploy/server/api/routers/settings.ts | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/apps/dokploy/pages/index.tsx b/apps/dokploy/pages/index.tsx
index 181d9a471..d830895c4 100644
--- a/apps/dokploy/pages/index.tsx
+++ b/apps/dokploy/pages/index.tsx
@@ -104,7 +104,7 @@ export default function Home() {
className="flex flex-row items-center gap-2"
>
- Dokploy.
+ Dokploy
Sign in
diff --git a/apps/dokploy/server/api/routers/settings.ts b/apps/dokploy/server/api/routers/settings.ts
index 3076424a6..fa3b4b0e0 100644
--- a/apps/dokploy/server/api/routers/settings.ts
+++ b/apps/dokploy/server/api/routers/settings.ts
@@ -600,8 +600,9 @@ export const settingsRouter = createTRPCRouter({
health: publicProcedure.query(async () => {
if (IS_CLOUD) {
try {
- await db.execute(sql`SELECT 1`);
- return { status: "ok" };
+ // await db.execute(sql`SELECT 1`);
+ // return { status: "ok" };
+ throw new Error("Not implemented");
} catch (error) {
console.error("Database connection error:", error);
throw error;
@@ -610,3 +611,9 @@ export const settingsRouter = createTRPCRouter({
return { status: "not_cloud" };
}),
});
+// {
+// "Parallelism": 1,
+// "Delay": 10000000000,
+// "FailureAction": "rollback",
+// "Order": "start-first"
+// }