From e48b39eb023998eb7575fdbd2d58082b4d933149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 17 Nov 2023 11:22:21 +0000 Subject: [PATCH] fix: Change undefined to null in confirmationEmailSchema --- api.planx.uk/modules/sendEmail/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.planx.uk/modules/sendEmail/types.ts b/api.planx.uk/modules/sendEmail/types.ts index ae24d85519..4f17cd3a72 100644 --- a/api.planx.uk/modules/sendEmail/types.ts +++ b/api.planx.uk/modules/sendEmail/types.ts @@ -50,7 +50,7 @@ export const confirmationEmailSchema = z.object({ body: z.object({ payload: z.object({ sessionId: z.string(), - lockedAt: z.string().optional(), + lockedAt: z.string().or(z.null()), email: z.string().email(), }), }),