feat: add nullable start_date and end_date fields to adResponseSchema

This commit is contained in:
Ardeman 2025-03-14 12:08:47 +08:00
parent 01f9cf06ca
commit 273add293e

View File

@ -6,6 +6,8 @@ const adResponseSchema = z.object({
id: z.string(),
image_url: z.string(),
url: z.string(),
start_date: z.string().nullable(),
end_date: z.string().nullable(),
})
const adsResponseSchema = z.object({
data: z.array(adResponseSchema),