mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #3385 from akhilmhdh/feat/add-max-role
Added max to $OR in search function
This commit is contained in:
@@ -39,5 +39,5 @@ export type TSearchResource = {
|
||||
};
|
||||
|
||||
export const buildSearchZodSchema = <T extends TSearchResource>(schema: z.ZodObject<T>) => {
|
||||
return schema.extend({ $or: schema.array().optional() }).optional();
|
||||
return schema.extend({ $or: schema.array().max(5).optional() }).optional();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user