details
This commit is contained in:
1 parent
0453b790af
commit
b4135e26ce
7 files changed
+171
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user