fix: update start_date and end_date fields to be non-nullable and filter ads based on date range

This commit is contained in:
Ardeman
2025-03-14 12:54:15 +08:00
parent f04ad1a8f8
commit 29baa39a94
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -6,8 +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(),
start_date: z.string(),
end_date: z.string(),
})
const adsResponseSchema = z.object({
data: z.array(adResponseSchema),