build(deps-dev): apply updates
[poolifier.git] / examples / typescript / http-server-pool / express-worker_threads / src / main.ts
index fc0f2d84bb7b19a2b05455abea5915ef0959aa2d..615143646507d8e2f33922426384a19e8e5e906c 100644 (file)
@@ -33,7 +33,7 @@ expressApp.all('/api/echo', (req: Request, res: Response) => {
 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()
     })
@@ -43,7 +43,7 @@ expressApp.get('/api/factorial/:number', (req: Request, res: Response) => {
 try {
   expressApp.listen(port, () => {
     console.info(
-      `⚡️[express server]: Express server is started at http://localhost:${port}/`
+      `⚡️[express server]: Express server is started at http://localhost:${port.toString()}/`
     )
   })
 } catch (err) {