Einstellungen sind eingeschränkt wenn Nutzer gebannt ist
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user