From 4846b22cd1b22e848462563a8ce2e346a5faee5e Mon Sep 17 00:00:00 2001 From: Secret Specter Date: Thu, 14 Dec 2023 23:06:26 -0700 Subject: [PATCH] fix format and use database.client --- src/config.js | 2 +- src/database.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.js b/src/config.js index fb6232d4..adb250a1 100644 --- a/src/config.js +++ b/src/config.js @@ -12,7 +12,7 @@ const LOGGER = require('@calzoneman/jsli')('config'); var defaults = { database: { - client: "mysql", + client: "mysql", server: "localhost", port: 3306, database: "cytube3", diff --git a/src/database.js b/src/database.js index ef70d256..f545883f 100644 --- a/src/database.js +++ b/src/database.js @@ -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'),