Manuelle reports

This commit is contained in:
PxlLoewe
2025-07-27 13:45:13 -07:00
parent 453ad28538
commit 89a0eb7135
6 changed files with 163 additions and 12 deletions

View File

@@ -3,6 +3,12 @@ import { prisma, Prisma } from "@repo/db";
import bcrypt from "bcryptjs";
import { sendMailByTemplate } from "../../../../helper/mail";
export const getUser = async (where: Prisma.UserWhereInput) => {
return await prisma.user.findMany({
where,
});
};
export const editUser = async (id: string, data: Prisma.UserUpdateInput) => {
return await prisma.user.update({
where: {