Skip to content

Commit

Permalink
add db query to health check
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasey committed Oct 24, 2024
1 parent 332ed59 commit 1e8ac0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/scoutgame/app/api/health/route.ts
Original file line number Diff line number Diff line change
@@ -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');
}

0 comments on commit 1e8ac0f

Please sign in to comment.