From 634c809489878f47a0b4b658ef1bd8713ac0c03d Mon Sep 17 00:00:00 2001 From: Ardeman Date: Sun, 9 Mar 2025 09:41:11 +0800 Subject: [PATCH] fix: allow end_date to be nullable in user response schema --- app/apis/news/get-user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/apis/news/get-user.ts b/app/apis/news/get-user.ts index f223388..e291b33 100644 --- a/app/apis/news/get-user.ts +++ b/app/apis/news/get-user.ts @@ -11,7 +11,7 @@ const userResponseSchema = z.object({ id: z.string(), subscribe_plan_id: z.string(), start_date: z.string(), - end_date: z.string(), + end_date: z.string().nullable(), status: z.string(), auto_renew: z.boolean(), subscribe_plan: z.object({