set default all for incident validation
This commit is contained in:
1 parent
c558c4b635
commit
2b2db2df6f
1 file changed
+1
-1
@@ -7,7 +7,7 @@ import { booleanCoercion } from "./shared.js";
|
|||||||
|
|
||||||
export const getIncidentsByTeamQueryValidation = z.object({
|
export const getIncidentsByTeamQueryValidation = z.object({
|
||||||
sortOrder: z.enum(["asc", "desc"]),
|
sortOrder: z.enum(["asc", "desc"]),
|
||||||
dateRange: z.enum(["recent", "hour", "day", "week", "month", "all"]),
|
dateRange: z.enum(["recent", "hour", "day", "week", "month", "all"]).default("all"),
|
||||||
page: z.coerce.number().int().min(0),
|
page: z.coerce.number().int().min(0),
|
||||||
rowsPerPage: z.coerce.number().int().min(1),
|
rowsPerPage: z.coerce.number().int().min(1),
|
||||||
status: booleanCoercion.optional(),
|
status: booleanCoercion.optional(),
|
||||||
|
|||||||
Reference in new issue
Block a user