Penalty Übersicht für Nutzer und Penalty-Log
This commit is contained in:
@@ -12,6 +12,12 @@ export const editUser = async (id: string, data: Prisma.UserUpdateInput) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const addPenalty = async (data: Prisma.PenaltyCreateInput) => {
|
||||
return await prisma.penalty.create({
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
export const resetPassword = async (id: string) => {
|
||||
const array = new Uint8Array(8);
|
||||
crypto.getRandomValues(array);
|
||||
|
||||
Reference in New Issue
Block a user