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 = {
database: {
client: "mysql",
client: "mysql",
server: "localhost",
port: 3306,
database: "cytube3",

View file

@ -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'),