fix: update start_date and end_date fields to be non-nullable and filter ads based on date range
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user