Include Profile log in renamed penalty model -> Audit log

This commit is contained in:
PxlLoewe
2026-01-21 19:38:55 +01:00
parent b250fa46c2
commit 005509598c
7 changed files with 62 additions and 22 deletions

View File

@@ -58,10 +58,13 @@ export const deletePilotHistory = async (id: number) => {
});
};
export const deleteUser = async (id: string) => {
return await prisma.user.delete({
return await prisma.user.update({
where: {
id: id,
},
data: {
isDeleted: true,
},
});
};