expressApp.get('/api/factorial/:number', (req: Request, res: Response) => {
const { number } = req.params
requestHandlerPool
- .execute({ body: { number: parseInt(number) } }, 'factorial')
+ .execute({ body: { number: Number.parseInt(number) } }, 'factorial')
.then(response => {
return res.send(response.body).end()
})