From 259ed9b06f163fcf75670a7091db894996b08402 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Wed, 25 Dec 2019 21:12:29 +0100 Subject: [PATCH] Error. Fixed capitalization of file name. --- seasoned_api/src/config/configuration.js | 4 ++-- seasoned_api/src/webserver/app.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/seasoned_api/src/config/configuration.js b/seasoned_api/src/config/configuration.js index a5c859e..0e8988c 100644 --- a/seasoned_api/src/config/configuration.js +++ b/seasoned_api/src/config/configuration.js @@ -22,13 +22,13 @@ class Config { get(section, option) { if (this.fields[section] === undefined || this.fields[section][option] === undefined) { - throw new Error(`Filed "${section} => ${option}" does not exist.`); + throw new Error(`Field "${section} => ${option}" does not exist.`); } const field = new Field(this.fields[section][option]); if (field.value === '') { - const envField = process.env[['SEASONED', section.toUpperCase(), option.toUpperCase()].join('_')]; + const envField = process.env[[section.toUpperCase(), option.toUpperCase()].join('_')]; if (envField !== undefined && envField.length !== 0) { return envField; } } diff --git a/seasoned_api/src/webserver/app.js b/seasoned_api/src/webserver/app.js index 185fd58..bbe61c1 100644 --- a/seasoned_api/src/webserver/app.js +++ b/seasoned_api/src/webserver/app.js @@ -10,7 +10,7 @@ const configuration = require('src/config/configuration').getInstance(); const listController = require('./controllers/list/listController'); const tautulli = require('./controllers/user/viewHistory.js'); const SettingsController = require('./controllers/user/settings'); -const AuthenticatePlexAccountController = require('./controllers/user/AuthenticatePlexAccount'); +const AuthenticatePlexAccountController = require('./controllers/user/authenticatePlexAccount'); // TODO: Have our raven router check if there is a value, if not don't enable raven. Raven.config(configuration.get('raven', 'DSN')).install();