refactor: add status ok

This commit is contained in:
Mauricio Siu 2024-10-05 14:37:45 -06:00
parent fecffac573
commit e32afde973

View File

@ -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;