mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-26 06:46:40 +00:00
Fix resource new id number
This commit is contained in:
@@ -14,7 +14,7 @@ const removeRoleResourceParamsSchema = z.object({
|
||||
});
|
||||
|
||||
const removeRoleResourceSchema = z.object({
|
||||
resourceId: z.string(),
|
||||
resourceId: z.string().transform(Number).pipe(z.number().int().positive()),
|
||||
});
|
||||
|
||||
export async function removeRoleResource(req: Request, res: Response, next: NextFunction): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user