Skip to content

Commit

Permalink
Normalize Tripsha emails in the same way we do for Zupass users (proo…
Browse files Browse the repository at this point in the history
  • Loading branch information
robknight authored Nov 10, 2023
1 parent b5d13d7 commit 140e0a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const DAY_PASSES: Record<string, string> = {
*/
const ZuconnectTripshaSchema = z.object({
id: z.string(),
email: z.string().email(),
email: z.string().email().toLowerCase().trim(),
// Ticket type can only match the set given in TRIPSHA_TICKET_TYPES
ticketName: z.enum(ZUCONNECT_TICKET_NAMES).default("ZuConnect Resident Pass"),
first: z.string(),
Expand Down

0 comments on commit 140e0a5

Please sign in to comment.