This commit is contained in:
PxlLoewe
2025-06-23 19:33:00 -07:00
parent 65ea4640c3
commit dabcad2525
13 changed files with 294 additions and 292 deletions

View File

@@ -6,3 +6,12 @@ export const addPenalty = async (data: Prisma.PenaltyCreateInput) => {
data,
});
};
export const editPenalty = async (id: number, data: Prisma.PenaltyUpdateInput) => {
return await prisma.penalty.update({
where: {
id: id,
},
data,
});
};