mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-01-02 19:08:28 -05:00
16 lines
303 B
TypeScript
16 lines
303 B
TypeScript
"use server";
|
|
import 'server-only';
|
|
|
|
import {prisma} from "@/lib/server/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;
|
|
}
|
|
}
|