From e32afde9732bfc233953c10fe55bdf2581d3bf2a Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 5 Oct 2024 14:37:45 -0600 Subject: [PATCH] refactor: add status ok --- apps/dokploy/server/api/routers/settings.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/dokploy/server/api/routers/settings.ts b/apps/dokploy/server/api/routers/settings.ts index fa3b4b0e0..1218ea5fc 100644 --- a/apps/dokploy/server/api/routers/settings.ts +++ b/apps/dokploy/server/api/routers/settings.ts @@ -600,9 +600,8 @@ export const settingsRouter = createTRPCRouter({ health: publicProcedure.query(async () => { if (IS_CLOUD) { try { - // await db.execute(sql`SELECT 1`); - // return { status: "ok" }; - throw new Error("Not implemented"); + await db.execute(sql`SELECT 1`); + return { status: "ok" }; } catch (error) { console.error("Database connection error:", error); throw error;