Skip to content

Commit 631f90c

Browse files
committed
fix: make customerEmail nullable in SubscriptionSchema
Allows the schema to handle edge cases while business logic enforces email requirement at subscription creation time.
1 parent f22d5de commit 631f90c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/schemas/subscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const RecurringIntervalSchema = z.enum(["MONTH", "QUARTER", "YEAR"]);
1212
export const SubscriptionSchema = z.object({
1313
id: z.string(),
1414
customerId: z.string(),
15-
customerEmail: z.string(),
15+
customerEmail: z.string().nullable(),
1616
productId: z.string(),
1717
amount: z.number(),
1818
currency: CurrencySchema,

0 commit comments

Comments
 (0)