mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-30 01:06:22 +02:00
✨ Allow making email required (#864)
This commit is contained in:
parent
b9d4b31f38
commit
a9253bd972
16 changed files with 516 additions and 495 deletions
|
@ -58,6 +58,7 @@ export const polls = router({
|
|||
hideParticipants: z.boolean().optional(),
|
||||
hideScores: z.boolean().optional(),
|
||||
disableComments: z.boolean().optional(),
|
||||
requireParticipantEmail: z.boolean().optional(),
|
||||
options: z
|
||||
.object({
|
||||
startDate: z.string(),
|
||||
|
@ -116,6 +117,7 @@ export const polls = router({
|
|||
hideParticipants: input.hideParticipants,
|
||||
disableComments: input.disableComments,
|
||||
hideScores: input.hideScores,
|
||||
requireParticipantEmail: input.requireParticipantEmail,
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -161,6 +163,7 @@ export const polls = router({
|
|||
hideParticipants: z.boolean().optional(),
|
||||
disableComments: z.boolean().optional(),
|
||||
hideScores: z.boolean().optional(),
|
||||
requireParticipantEmail: z.boolean().optional(),
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ input }) => {
|
||||
|
@ -211,6 +214,7 @@ export const polls = router({
|
|||
hideScores: input.hideScores,
|
||||
hideParticipants: input.hideParticipants,
|
||||
disableComments: input.disableComments,
|
||||
requireParticipantEmail: input.requireParticipantEmail,
|
||||
},
|
||||
});
|
||||
}),
|
||||
|
@ -377,6 +381,7 @@ export const polls = router({
|
|||
hideParticipants: true,
|
||||
disableComments: true,
|
||||
hideScores: true,
|
||||
requireParticipantEmail: true,
|
||||
demo: true,
|
||||
options: {
|
||||
select: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue