This commit is contained in:
Alex Holliday committed 2025-12-07 04:38:37 +00:00
1 parent 0453b790af
commit b4135e26ce
7 files changed
+171 -11

No files matched your search

+6
View File
@@ -517,6 +517,12 @@ export const profileSchema = z
}
);
export const getIncidentQuerySchema = z.object({
id: z.string().refine((val) => mongoose.Types.ObjectId.isValid(val), {
message: "Invalid MongoDB ObjectId",
}),
});
export const getIncidentsQuerySchema = z.object({
resolutionType: z.enum(ResolutionTypes).optional(),
resolved: z