Einstellungen sind eingeschränkt wenn Nutzer gebannt ist

This commit is contained in:
PxlLoewe
2025-06-25 18:07:05 -07:00
parent 577a18d595
commit b95319d61e
6 changed files with 191 additions and 68 deletions

View File

@@ -50,8 +50,15 @@ export const deletePilotHistory = async (id: number) => {
},
});
};
export const deleteUser = async (id: string) => {
return await prisma.user.delete({
where: {
id: id,
},
});
};
export const CheckEmailCode = async (code: string) => {
export const checkEmailCode = async (code: string) => {
const users = await prisma.user.findMany({
where: {
emailVerificationToken: code,