onlineHandler: () => {
pool
.execute({ port: 8080 })
- .then((response) => {
+ .then(response => {
if (response.status) {
console.info(
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
`Express is listening in cluster worker on port ${response?.port}`
)
}
- return null
+ return undefined
})
- .catch((error) => {
+ .catch(error => {
console.error('Express failed to start in cluster worker:', error)
})
},