Skip to content

Commit

Permalink
Remove also filename from structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Oct 13, 2023
1 parent 5caa3f2 commit ff9213f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion databases/mysql_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ff9213f

Please sign in to comment.