mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: add status ok
This commit is contained in:
parent
fecffac573
commit
e32afde973
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user