This commit is contained in:
Sainan 2024-05-31 14:03:13 +02:00
parent 61bb0636ec
commit 01bfaee775
3 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -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;

View File

@ -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,