You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Date filter doesn't work via query parameters (Zod validation error) #14
The date filter (startDate / endDate) doesn't work when passed as query parameters. The API returns a Zod validation error expecting date type but receiving string.
Steps to Reproduce
Start taskiq-admin
Create some tasks
Try to filter by date via URL: http://localhost:3000/tasks?page=1&perPage=20&search=test&startDate=2026-01-19&endDate=2026-01-21
Query string parameters are always strings. Zod schema expects JavaScript Date object which is impossible to pass via URL. The schema should coerce string to Date:
// Current (broken)
startDate: z.date().optional()// Should be
startDate: z.coerce.date().optional()
Activity
spikeninja commentedon Jan 20, 2026
Hey @sergey-chek
Thank you for the issue, looking into that