mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-03 03:01:52 +02:00
🗑️ Deprecate touchedAt (#1652)
This commit is contained in:
parent
9516c8dd88
commit
13bcd744d2
2 changed files with 1 additions and 17 deletions
|
@ -365,22 +365,6 @@ export const polls = router({
|
|||
data: { deleted: true, deletedAt: new Date() },
|
||||
});
|
||||
}),
|
||||
touch: publicProcedure
|
||||
.input(
|
||||
z.object({
|
||||
pollId: z.string(),
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ input: { pollId } }) => {
|
||||
await prisma.poll.update({
|
||||
where: {
|
||||
id: pollId,
|
||||
},
|
||||
data: {
|
||||
touchedAt: new Date(),
|
||||
},
|
||||
});
|
||||
}),
|
||||
// END LEGACY ROUTES
|
||||
getWatchers: publicProcedure
|
||||
.input(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue