mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 18:51:52 +02:00
♻️ Improvements to house-keeping webhook (#1063)
This commit is contained in:
parent
0d82c158ce
commit
90f0d90fab
9 changed files with 173 additions and 104 deletions
|
@ -237,7 +237,10 @@ export const polls = router({
|
|||
)
|
||||
.mutation(async ({ input: { urlId } }) => {
|
||||
const pollId = await getPollIdFromAdminUrlId(urlId);
|
||||
await prisma.poll.delete({ where: { id: pollId } });
|
||||
await prisma.poll.update({
|
||||
where: { id: pollId },
|
||||
data: { deleted: true, deletedAt: new Date() },
|
||||
});
|
||||
}),
|
||||
touch: publicProcedure
|
||||
.input(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue