Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🗑️ Deprecate touchedAt (#1652)
Luke Vella13bcd744d2cb
diff --git a/apps/web/src/trpc/routers/polls.ts b/apps/web/src/trpc/routers/polls.tsindex 52d687bba..93af17df8 100644--- a/apps/web/src/trpc/routers/polls.ts+++ b/apps/web/src/trpc/routers/polls.ts@@ -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 ROUTESgetWatchers: publicProcedure.input(diff --git a/packages/database/prisma/schema.prisma b/packages/database/prisma/schema.prismaindex 042a5a141..afb4ed3d4 100644--- a/packages/database/prisma/schema.prisma+++ b/packages/database/prisma/schema.prisma@@ -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") // @deprecatedparticipantUrlId String @unique @map("participant_url_id")adminUrlId String @unique @map("admin_url_id")eventId String? @unique @map("event_id")