From 1e8ac0f1aba80804ec410e34c7bd5075557d36f8 Mon Sep 17 00:00:00 2001 From: mattcasey Date: Thu, 24 Oct 2024 09:46:46 -0600 Subject: [PATCH] add db query to health check --- apps/scoutgame/app/api/health/route.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/scoutgame/app/api/health/route.ts b/apps/scoutgame/app/api/health/route.ts index 900a4d5649..a2da8f99df 100644 --- a/apps/scoutgame/app/api/health/route.ts +++ b/apps/scoutgame/app/api/health/route.ts @@ -1,3 +1,7 @@ -export function GET() { +import { prisma } from '@charmverse/core/prisma-client'; + +export async function GET() { + // test that the DB is configured properly + await prisma.scout.findFirst(); return new Response('ok'); }