From c7e0e23950067c582234f0f8d657e93f343aed52 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 19 Apr 2023 18:42:23 -0400 Subject: [PATCH] style: use casing in option names for readability --- src/config.ts | 4 ++-- src/modules/app.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index 41f6169..ae0a443 100644 --- a/src/config.ts +++ b/src/config.ts @@ -5,7 +5,7 @@ import * as fs from "fs"; import path from "path"; import log from "./log.js"; -const config = new Config("lumeweb-relay", "core.confdir"); +const config = new Config("lumeweb-relay", "core.confDir"); let configDir; @@ -33,7 +33,7 @@ config.inject({ config.load(); -configDir = config.str("core.confdir"); +configDir = config.str("core.confDir"); if (fs.existsSync(configDir)) { try { diff --git a/src/modules/app.ts b/src/modules/app.ts index 8abdd0a..8f7ee8c 100644 --- a/src/modules/app.ts +++ b/src/modules/app.ts @@ -20,7 +20,7 @@ export async function start() { await getPluginAPI().emitAsync("core.appServer.buildRoutes"); - await app.listen({ port: config.uint("core.appport"), host: "0.0.0.0" }); + await app.listen({ port: config.uint("core.appPort"), host: "0.0.0.0" }); getPluginAPI().emit("core.appServer.started"); }