From 2b26f56ce8901cf926e002cd0fff845bfaadb4bd Mon Sep 17 00:00:00 2001 From: tabarra Date: Thu, 5 Oct 2023 00:34:07 -0300 Subject: [PATCH] chore: small assorted changes --- core/.npm-upgrade.json | 2 +- core/components/FxRunner/outputHandler.ts | 2 +- core/components/UpdateChecker.ts | 1 - core/webroutes/fxserver/downloadLog.js | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/.npm-upgrade.json b/core/.npm-upgrade.json index 752852556..7848ae9bf 100644 --- a/core/.npm-upgrade.json +++ b/core/.npm-upgrade.json @@ -21,4 +21,4 @@ "reason": "dropped support for node 16" } } -} +} \ No newline at end of file diff --git a/core/components/FxRunner/outputHandler.ts b/core/components/FxRunner/outputHandler.ts index a6cd3097f..2a1fee699 100644 --- a/core/components/FxRunner/outputHandler.ts +++ b/core/components/FxRunner/outputHandler.ts @@ -67,7 +67,7 @@ export default class OutputHandler { return; } - //Handle bind errors + //Handle nucleus auth if (channel == 'citizen-server-impl' && data.type == 'nucleus_connected') { if (typeof data.url !== 'string') { console.error(`FD3 nucleus_connected event without URL.`); diff --git a/core/components/UpdateChecker.ts b/core/components/UpdateChecker.ts index 5ea66cfa1..caf2b0e37 100644 --- a/core/components/UpdateChecker.ts +++ b/core/components/UpdateChecker.ts @@ -4,7 +4,6 @@ import { z } from "zod"; import got from '@core/extras/got.js'; import { txEnv } from '@core/globalData'; import consoleFactory from '@extras/console'; -import { convars } from '@core/globalData'; const console = consoleFactory(modulename); diff --git a/core/webroutes/fxserver/downloadLog.js b/core/webroutes/fxserver/downloadLog.js index 56ab0dc67..d625c9393 100644 --- a/core/webroutes/fxserver/downloadLog.js +++ b/core/webroutes/fxserver/downloadLog.js @@ -16,7 +16,7 @@ export default async function FXServerDownloadLog(ctx) { let readFile; try { - //NOTE: thy the fuck are errors from `createReadStream` not being caught? Well, using readFileSync for now... + //NOTE: why the fuck are errors from `createReadStream` not being caught? Well, using readFileSync for now... // readFile = fs.createReadStream(globals.fxRunner.config.logPath); readFile = fs.readFileSync(globals.fxRunner.config.logPath); } catch (error) {