From ff9213ff8670e7519a139aff95e307ae36dff9b8 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Fri, 13 Oct 2023 23:10:32 +0200 Subject: [PATCH] Remove also filename from structure. --- databases/mysql_db.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/databases/mysql_db.ts b/databases/mysql_db.ts index 5cc46a76..bec0b13e 100644 --- a/databases/mysql_db.ts +++ b/databases/mysql_db.ts @@ -55,9 +55,14 @@ export const Database = class extends AbstractDatabase { } async init() { - if("speeds" in this._mysqlSettings){ + if("speeds" in this._mysqlSettings) { delete this._mysqlSettings.speeds } + + if ("filename" in this._mysqlSettings) { + delete this._mysqlSettings.filename + } + this._pool = createPool(this._mysqlSettings as ConnectionConfig); const {database, charset} = this._mysqlSettings;