fix: make membershipLevel since not present on all membership types

This commit is contained in:
Arvid Norlin
2024-06-14 11:43:00 +02:00
parent b4f57d5ae3
commit 04dfad95ec
2 changed files with 4 additions and 2 deletions

View File

@@ -21,7 +21,9 @@ export const getUserSchema = z.object({
currentPoints: z.number(),
expirationDate: z.string(),
membershipNumber: z.string(),
membershipLevel: z.enum(["L1", "L2", "L3", "L4", "L5", "L6", "L7"]),
membershipLevel: z
.enum(["L1", "L2", "L3", "L4", "L5", "L6", "L7"])
.optional(),
memberSince: z.string(),
membershipType: z.string(),
})