fix(app.ts): resolve with server

This commit is contained in:
Joe Previte 2021-01-20 12:48:37 -07:00
parent f13ba9401b
commit 6bf51caa17
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
1 changed files with 2 additions and 2 deletions

View File

@ -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))
}
})