From 092df2986918d94b90993b78212238463d60b612 Mon Sep 17 00:00:00 2001 From: "hojin.jeong" Date: Mon, 25 Aug 2025 16:25:44 +0900 Subject: [PATCH] config.json case bugfixe --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index dbdb090..14fbf9f 100644 --- a/app.js +++ b/app.js @@ -6,7 +6,7 @@ const NTFY = require('./lib/ntfy') const Constants = require('./lib/constants') new class LottoAutomation { - #configFilename = process.env.LOTTO_AUTOMATION_CONFIG_FILENAME ?? 'Config.json' + #configFilename = process.env.LOTTO_AUTOMATION_CONFIG_FILENAME ?? 'config.json' #configPath = `${process.env.LOTTO_AUTOMATION_CONFIG_DIR ?? __dirname}/${this.#configFilename}` #config = {} @@ -16,14 +16,14 @@ new class LottoAutomation { } #_loadConfig() { if(!Fs.existsSync(this.#configPath)) - throw new Error('Config.json 파일이 존재하지 않습니다.') + throw new Error('config.json 파일이 존재하지 않습니다.') try { const configString = Fs.readFileSync(this.#configPath) this.#config = JSON.parse(configString) NTFY.Init(this.#config.ntfyUrl, this.#config.ntfyToken) } catch(e) { - throw new Error('Config.json 파일이 올바르지 않습니다.') + throw new Error('config.json 파일이 올바르지 않습니다.') } } async #_buyLotto() {