Skip to content

Commit

Permalink
Ensure flight name is not empty (fixes GH-109)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Dec 19, 2023
1 parent 0c6a3ce commit 32a132e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/schemas/flights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const FlightSchema = z.object({
});

export const FlightInputSchema = z.object({
name: z.string(),
name: z.string().trim().min(1, "Required"),
description: z.string().nullable().optional(),
public: z.boolean().default(false).optional(),
bottles: z.array(z.number()).optional(),
Expand Down

0 comments on commit 32a132e

Please sign in to comment.