mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-02 16:09:08 +02:00
🐛 Require non-empty title when duplicating (#807)
This commit is contained in:
parent
996743caaf
commit
1c44b3954b
2 changed files with 16 additions and 4 deletions
|
@ -65,7 +65,7 @@ export const polls = router({
|
|||
create: possiblyPublicProcedure
|
||||
.input(
|
||||
z.object({
|
||||
title: z.string(),
|
||||
title: z.string().trim().min(1),
|
||||
timeZone: z.string().optional(),
|
||||
location: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
|
@ -794,7 +794,7 @@ export const polls = router({
|
|||
.input(
|
||||
z.object({
|
||||
pollId: z.string(),
|
||||
newTitle: z.string(),
|
||||
newTitle: z.string().min(1),
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue