mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-31 16:14:46 +02:00
Fix resource new id number
This commit is contained in:
parent
c6d4c4db20
commit
261b3c7e31
19 changed files with 31 additions and 28 deletions
|
@ -11,7 +11,7 @@ import logger from '@server/logger';
|
|||
|
||||
const removeUserResourceSchema = z.object({
|
||||
userId: z.string(),
|
||||
resourceId: z.string(),
|
||||
resourceId: z.string().transform(Number).pipe(z.number().int().positive())
|
||||
});
|
||||
|
||||
export async function removeUserResource(req: Request, res: Response, next: NextFunction): Promise<any> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue