} from './types.js'
const emptyFunction = (): void => {
- /** Intentional */
+ /* Intentional */
}
class ExpressWorker extends ClusterWorker<
application.all('/api/echo', (req: Request, res: Response) => {
ExpressWorker.requestHandlerPool
.execute({ data: req.body }, 'echo')
- .then((response) => {
+ .then(response => {
return res.send(response.data).end()
})
.catch(emptyFunction)
const { number } = req.params
ExpressWorker.requestHandlerPool
.execute({ data: { number: parseInt(number) } }, 'factorial')
- .then((response) => {
+ .then(response => {
return res.send(response.data).end()
})
.catch(emptyFunction)