X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-server-pool%2Fexpress-worker_threads%2Fsrc%2Fmain.ts;h=970cf4d0d52f9f8bd78f47d19e5b89d4ba61f047;hb=85d2a65ad4435211edf06c035f87425594044bd2;hp=4f1a4d957a75d3274052f56237bd2bdcea243054;hpb=d2bc8d8026164b1389822feced0f42af20552176;p=poolifier.git diff --git a/examples/typescript/http-server-pool/express-worker_threads/src/main.ts b/examples/typescript/http-server-pool/express-worker_threads/src/main.ts index 4f1a4d95..970cf4d0 100644 --- a/examples/typescript/http-server-pool/express-worker_threads/src/main.ts +++ b/examples/typescript/http-server-pool/express-worker_threads/src/main.ts @@ -21,7 +21,7 @@ expressApp.use(express.json()) expressApp.all('/api/echo', (req: Request, res: Response) => { requestHandlerPool .execute({ body: req.body }, 'echo') - .then(response => { + .then((response) => { return res.send(response.body).end() }) .catch(emptyFunction) @@ -31,7 +31,7 @@ expressApp.get('/api/factorial/:number', (req: Request, res: Response) => { const { number } = req.params requestHandlerPool .execute({ body: { number: parseInt(number) } }, 'factorial') - .then(response => { + .then((response) => { return res.send(response.body).end() }) .catch(emptyFunction)