fix format and use database.client
This commit is contained in:
parent
0b806cec92
commit
4846b22cd1
|
@ -12,7 +12,7 @@ const LOGGER = require('@calzoneman/jsli')('config');
|
|||
|
||||
var defaults = {
|
||||
database: {
|
||||
client: "mysql",
|
||||
client: "mysql",
|
||||
server: "localhost",
|
||||
port: 3306,
|
||||
database: "cytube3",
|
||||
|
|
|
@ -30,7 +30,7 @@ class Database {
|
|||
constructor(knexConfig = null) {
|
||||
if (knexConfig === null) {
|
||||
knexConfig = {
|
||||
client: 'database',
|
||||
client: Config.get('database.client'),
|
||||
connection: {
|
||||
host: Config.get('database.server'),
|
||||
port: Config.get('database.port'),
|
||||
|
|
Loading…
Reference in a new issue