Files
Compass/lib/db-utils.ts
MartinBraquet fde816da8d Fix
2025-07-27 21:16:43 +02:00

15 lines
274 B
TypeScript

"use server";
import {prisma} from "@/lib/prisma";
export async function checkUserTableExists(): Promise<boolean> {
try {
await prisma.user.findFirst();
return true;
} catch {
// If there's an error, the table likely doesn't exist
return false;
}
}