fix(app.ts): resolve with server
This commit is contained in:
parent
f13ba9401b
commit
6bf51caa17
@ -46,10 +46,10 @@ export const createApp = async (args: DefaultedArgs): Promise<[Express, Express,
|
||||
logger.error(error.message)
|
||||
}
|
||||
}
|
||||
server.listen(args.socket, resolve)
|
||||
server.listen(args.socket, () => resolve(server))
|
||||
} else {
|
||||
// [] is the correct format when using :: but Node errors with them.
|
||||
server.listen(args.port, args.host.replace(/^\[|\]$/g, ""), resolve)
|
||||
server.listen(args.port, args.host.replace(/^\[|\]$/g, ""), () => resolve(server))
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user