Hopefully fixing the gym_id stuff
All checks were successful
Jenkins Production Deployment

This commit is contained in:
Patrick Müller 2022-01-11 17:15:10 +01:00
parent 578032c8a6
commit bff3d16c98
Signed by: Paddy
GPG Key ID: 37ABC11275CAABCE

View File

@ -195,7 +195,7 @@ climbingRoutesRouter.get('/:id', async (req: Request, res: Response) => {
*/
climbingRoutesRouter.post('/', async (req: Request, res: Response) => {
try {
let gym_id = Number(req.query.gym_id);
let gym_id = parseInt(req.query.gym_id as string, 10);
let name = req.query.name as string;
let difficulty = req.query.difficulty as string;
let captcha_token = req.query['hcaptcha_response'] as string;