🐛 Fix comments not deleted when deleting user (#1214)

This commit is contained in:
Luke Vella 2024-07-21 17:31:45 +01:00 committed by GitHub
parent 3cf777815b
commit 299b33df62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,6 +63,9 @@ export const user = router({
await tx.event.deleteMany({
where: { userId: ctx.user.id },
});
await tx.comment.deleteMany({
where: { userId: ctx.user.id },
});
await tx.poll.deleteMany({
where: { userId: ctx.user.id },
});