From 6c4e893d686324f067f8f9fb1193d3c61b5eb5dd Mon Sep 17 00:00:00 2001 From: bill bittner Date: Wed, 13 Sep 2017 15:06:45 -0700 Subject: [PATCH] fixed typo in db config vars --- config/custom-environment-variables.json | 4 ++-- config/default.json | 6 +++--- models/index.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/custom-environment-variables.json b/config/custom-environment-variables.json index 8d534311..dd32d682 100644 --- a/config/custom-environment-variables.json +++ b/config/custom-environment-variables.json @@ -3,7 +3,7 @@ "LbryClaimAddress": "LBRY_CLAIM_ADDRESS" }, "Database": { - "username": "MYSQL_USERNAME", - "password": "MYSQL_PASSWORD" + "Username": "MYSQL_USERNAME", + "Password": "MYSQL_PASSWORD" } } \ No newline at end of file diff --git a/config/default.json b/config/default.json index 85515097..cdab2d23 100644 --- a/config/default.json +++ b/config/default.json @@ -6,9 +6,9 @@ "GoogleId": "none" }, "Database": { - "database": "lbry", - "username": "none", - "password": "none" + "Database": "lbry", + "Username": "none", + "Password": "none" }, "Logging": { "LogLevel": "none" diff --git a/models/index.js b/models/index.js index 0d670107..96a4d288 100644 --- a/models/index.js +++ b/models/index.js @@ -6,9 +6,9 @@ const config = require('config'); const db = {}; const logger = require('winston'); -const database = config.get('Database.database'); -const username = config.get('Database.username'); -const password = config.get('Database.password'); +const database = config.get('Database.Database'); +const username = config.get('Database.Username'); +const password = config.get('Database.Password'); const sequelize = new Sequelize(database, username, password, { host : 'localhost', dialect: 'mysql',