We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b25571 commit 42b9b46Copy full SHA for 42b9b46
apps/webapp/app/routes/healthcheck.tsx
@@ -3,7 +3,7 @@ import type { LoaderFunction } from "@remix-run/node";
3
4
export const loader: LoaderFunction = async ({ request }) => {
5
try {
6
- await prisma.user.count();
+ await prisma.$queryRaw`SELECT 1`;
7
return new Response("OK");
8
} catch (error: unknown) {
9
console.log("healthcheck ❌", { error });
0 commit comments