Error. Fixed capitalization of file name.
This commit is contained in:
@@ -22,13 +22,13 @@ class Config {
|
|||||||
|
|
||||||
get(section, option) {
|
get(section, option) {
|
||||||
if (this.fields[section] === undefined || this.fields[section][option] === undefined) {
|
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]);
|
const field = new Field(this.fields[section][option]);
|
||||||
|
|
||||||
if (field.value === '') {
|
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; }
|
if (envField !== undefined && envField.length !== 0) { return envField; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const configuration = require('src/config/configuration').getInstance();
|
|||||||
const listController = require('./controllers/list/listController');
|
const listController = require('./controllers/list/listController');
|
||||||
const tautulli = require('./controllers/user/viewHistory.js');
|
const tautulli = require('./controllers/user/viewHistory.js');
|
||||||
const SettingsController = require('./controllers/user/settings');
|
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.
|
// TODO: Have our raven router check if there is a value, if not don't enable raven.
|
||||||
Raven.config(configuration.get('raven', 'DSN')).install();
|
Raven.config(configuration.get('raven', 'DSN')).install();
|
||||||
|
|||||||
Reference in New Issue
Block a user