fix format and use database.client

This commit is contained in:
secretspecter 2023-12-14 23:06:26 -07:00
parent 0b806cec92
commit 4846b22cd1
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ const LOGGER = require('@calzoneman/jsli')('config');
var defaults = { var defaults = {
database: { database: {
client: "mysql", client: "mysql",
server: "localhost", server: "localhost",
port: 3306, port: 3306,
database: "cytube3", database: "cytube3",

View file

@ -30,7 +30,7 @@ class Database {
constructor(knexConfig = null) { constructor(knexConfig = null) {
if (knexConfig === null) { if (knexConfig === null) {
knexConfig = { knexConfig = {
client: 'database', client: Config.get('database.client'),
connection: { connection: {
host: Config.get('database.server'), host: Config.get('database.server'),
port: Config.get('database.port'), port: Config.get('database.port'),