fix: make zip code and phone nr optional
This commit is contained in:
@@ -10,7 +10,7 @@ export const getUserSchema = z.object({
|
||||
country: z.string().optional(),
|
||||
countryCode: z.nativeEnum(countriesMap).optional(),
|
||||
streetAddress: z.string().optional(),
|
||||
zipCode: z.string(),
|
||||
zipCode: z.string().optional(),
|
||||
}),
|
||||
dateOfBirth: z.string().optional().default("N/A"),
|
||||
email: z.string().email(),
|
||||
@@ -27,7 +27,7 @@ export const getUserSchema = z.object({
|
||||
membershipType: z.string(),
|
||||
})
|
||||
),
|
||||
phoneNumber: z.string(),
|
||||
phoneNumber: z.string().optional(),
|
||||
profileId: z.string(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user