diff --git a/.eslintrc b/.eslintrc index 8bf18ad7..615dc50a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -23,6 +23,7 @@ "@typescript-eslint/no-unsafe-call": "warn", "@typescript-eslint/no-unsafe-assignment": "warn", "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-loss-of-precision": "warn", "no-case-declarations": "warn" }, "parser": "@typescript-eslint/parser", diff --git a/src/index.ts b/src/index.ts index a6af9b29..e82fd2fe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,8 @@ const httpsPort = config.httpsPort || 443; // const server = http.createServer(app).listen(80); http.createServer(app).listen(httpPort, () => logger.info("HTTP server started on port " + httpPort)); -https.createServer(options, app).listen(httpsPort, () => logger.info("HTTPS server started on port " + httpsPort)); +const server = https.createServer(options, app); +server.listen(httpsPort, () => logger.info("HTTPS server started on port " + httpsPort)); // server.keepAliveTimeout = 60 * 1000 + 1000; // server.headersTimeout = 60 * 1000 + 2000; diff --git a/src/managers/sessionManager.ts b/src/managers/sessionManager.ts index 3a6ac40c..54fae2e5 100644 --- a/src/managers/sessionManager.ts +++ b/src/managers/sessionManager.ts @@ -25,7 +25,6 @@ function createNewSession(sessionData: ISession, Creator: string): ISession { customSettings: sessionData.customSettings || "", rewardSeed: sessionData.rewardSeed || -1, guildId: sessionData.guildId || "", - // eslint-disable-next-line @typescript-eslint/no-loss-of-precision buildId: sessionData.buildId || 4920386201513015989, platform: sessionData.platform || 0, xplatform: sessionData.xplatform || true,