mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 08:02:55 +00:00
refactor: update @types/node for node version 14
This commit is contained in:
12
src/cli.ts
12
src/cli.ts
@@ -90,10 +90,16 @@ async function onError(error: { code: string; syscall: string; }) {
|
||||
*/
|
||||
function onListening() {
|
||||
const addr = server.address();
|
||||
const bind = typeof addr === 'string'
|
||||
? `pipe ${addr}`
|
||||
|
||||
if (addr !== null) {
|
||||
const bind = typeof addr === 'string'
|
||||
? `pipe ${addr}`
|
||||
: `port ${addr.port}`;
|
||||
Logger.ok(`Listening on ${bind}`);
|
||||
Logger.ok(`Listening on ${bind}`);
|
||||
} else {
|
||||
// tslint:disable-next-line: no-floating-promises
|
||||
Logger.error(`Failed to start binding`);
|
||||
}
|
||||
}
|
||||
|
||||
configureApp(app, {elasticsearch: Elasticsearch})
|
||||
|
||||
Reference in New Issue
Block a user