mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-03 02:32:21 +00:00
refactor: add status ok
This commit is contained in:
@@ -600,9 +600,8 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
health: publicProcedure.query(async () => {
|
health: publicProcedure.query(async () => {
|
||||||
if (IS_CLOUD) {
|
if (IS_CLOUD) {
|
||||||
try {
|
try {
|
||||||
// await db.execute(sql`SELECT 1`);
|
await db.execute(sql`SELECT 1`);
|
||||||
// return { status: "ok" };
|
return { status: "ok" };
|
||||||
throw new Error("Not implemented");
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Database connection error:", error);
|
console.error("Database connection error:", error);
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user