This commit is contained in:
parent
578032c8a6
commit
bff3d16c98
|
@ -195,7 +195,7 @@ climbingRoutesRouter.get('/:id', async (req: Request, res: Response) => {
|
||||||
*/
|
*/
|
||||||
climbingRoutesRouter.post('/', async (req: Request, res: Response) => {
|
climbingRoutesRouter.post('/', async (req: Request, res: Response) => {
|
||||||
try {
|
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 name = req.query.name as string;
|
||||||
let difficulty = req.query.difficulty as string;
|
let difficulty = req.query.difficulty as string;
|
||||||
let captcha_token = req.query['hcaptcha_response'] as string;
|
let captcha_token = req.query['hcaptcha_response'] as string;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user