fix(prisma): update prisma schemas

This commit is contained in:
DecDuck
2025-01-19 16:46:43 +11:00
parent 0e631a9228
commit d6131e9f84
3 changed files with 17 additions and 5 deletions
@@ -0,0 +1,10 @@
import prisma from "~/server/internal/db/database";
export default defineEventHandler(async (h3) => {
const user = await h3.context.session.getAdminUser(h3);
if (!user) throw createError({ statusCode: 403 });
const users = await prisma.user.findMany({});
return users;
});