From 6bf51caa17b5eb50b5b71fc7615e1c0022ad49f4 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 20 Jan 2021 12:48:37 -0700 Subject: [PATCH] fix(app.ts): resolve with server --- src/node/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/app.ts b/src/node/app.ts index 1d9ce9d4..aa18b084 100644 --- a/src/node/app.ts +++ b/src/node/app.ts @@ -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)) } })