Fix resource new id number

This commit is contained in:
Owen Schwartz 2024-10-26 12:15:03 -04:00
parent c6d4c4db20
commit 261b3c7e31
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
19 changed files with 31 additions and 28 deletions

View file

@ -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> {