chore: update privacy
Some checks failed
Deploy / lint-build-deploy (push) Failing after 2m7s

This commit is contained in:
2026-01-28 19:56:07 +01:00
parent 7299a266f1
commit e73262b3b3
4 changed files with 80 additions and 423 deletions

View File

@@ -30,13 +30,10 @@ export async function POST(request: NextRequest) {
}
});
if (user && !user.deleted) {
await prisma.user.update({
if (user) {
await prisma.user.delete({
where: {
email
},
data: {
deleted: true
}
});