mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-01-19 03:08:04 -05:00
15 lines
274 B
TypeScript
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;
|
|
}
|
|
}
|