🗑️ Deprecate touchedAt (#1652)

This commit is contained in:
Luke Vella 2025-03-31 11:12:19 +01:00 committed by GitHub
parent 9516c8dd88
commit 13bcd744d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 17 deletions

View file

@ -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(