🗑️ 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() }, 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 // END LEGACY ROUTES
getWatchers: publicProcedure getWatchers: publicProcedure
.input( .input(

View file

@ -152,7 +152,7 @@ model Poll {
status PollStatus @default(live) status PollStatus @default(live)
deleted Boolean @default(false) deleted Boolean @default(false)
deletedAt DateTime? @map("deleted_at") deletedAt DateTime? @map("deleted_at")
touchedAt DateTime @default(now()) @map("touched_at") touchedAt DateTime @default(now()) @map("touched_at") // @deprecated
participantUrlId String @unique @map("participant_url_id") participantUrlId String @unique @map("participant_url_id")
adminUrlId String @unique @map("admin_url_id") adminUrlId String @unique @map("admin_url_id")
eventId String? @unique @map("event_id") eventId String? @unique @map("event_id")