mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-08 13:41:51 +02:00
🐛 Fix comments not deleted when deleting user (#1214)
This commit is contained in:
parent
3cf777815b
commit
299b33df62
1 changed files with 3 additions and 0 deletions
|
@ -63,6 +63,9 @@ export const user = router({
|
||||||
await tx.event.deleteMany({
|
await tx.event.deleteMany({
|
||||||
where: { userId: ctx.user.id },
|
where: { userId: ctx.user.id },
|
||||||
});
|
});
|
||||||
|
await tx.comment.deleteMany({
|
||||||
|
where: { userId: ctx.user.id },
|
||||||
|
});
|
||||||
await tx.poll.deleteMany({
|
await tx.poll.deleteMany({
|
||||||
where: { userId: ctx.user.id },
|
where: { userId: ctx.user.id },
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue