15 lines
234 B
TypeScript
15 lines
234 B
TypeScript
"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,
|
|
});
|
|
};
|