mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-05 20:21:50 +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(
|
||||
|
|
|
@ -152,7 +152,7 @@ model Poll {
|
|||
status PollStatus @default(live)
|
||||
deleted Boolean @default(false)
|
||||
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")
|
||||
adminUrlId String @unique @map("admin_url_id")
|
||||
eventId String? @unique @map("event_id")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue