diff --git a/packages/server/src/entry/server/Express.ts b/packages/server/src/entry/server/Express.ts index 440fcd55..dfde7a77 100644 --- a/packages/server/src/entry/server/Express.ts +++ b/packages/server/src/entry/server/Express.ts @@ -43,14 +43,11 @@ export class ExpressModule { private readonly cookieSecret: string ) {} - async init(): Promise { + init() { this.#app = express(); this.#app.set("trust proxy", true); this.#httpServer = http.createServer(this.app); - - // eslint-disable-next-line unicorn/no-useless-promise-resolve-reject - return Promise.resolve(); } public startMiddlewares() { diff --git a/packages/server/src/entry/server/Server.ts b/packages/server/src/entry/server/Server.ts index 132df1fa..1ff5f286 100644 --- a/packages/server/src/entry/server/Server.ts +++ b/packages/server/src/entry/server/Server.ts @@ -41,7 +41,7 @@ export class Server implements EntryPoint { `Logger initialized with level "${this.loggingLevel}", writing log files to "${this.logDir}"` ); - await this.expressModule.init(); + this.expressModule.init(); await this.apolloModule.init(); this.expressModule.startMiddlewares();