"use server"; import { Prisma, prisma } from "@repo/db"; export const editReport = async (id: number, data: Prisma.ReportUncheckedUpdateInput) => { return await prisma.report.update({ where: { id: id, }, data, }); }; export const createReport = async ( data: Prisma.XOR, ) => { return await prisma.report.create({ data, }); };