Skip to content

Commit

Permalink
fix(pool): Remove default database value from config
Browse files Browse the repository at this point in the history
  • Loading branch information
dunak-debug authored Oct 25, 2021
1 parent 5d6ca06 commit 8a3fa20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const createConnection = () => {
port: options.port || 3306,
user: options.username || options.user || options.userid || 'root',
password: options.password || options.pass || '',
database: options.endpoint || options.database || 'es_extended',
database: options.endpoint || options.database,
charset: 'utf8mb4_unicode_ci',
connectTimeout: 30000,
...options.options,
Expand All @@ -53,7 +53,7 @@ const createConnection = () => {
port: options.hosts[0].port || 3306,
user: options.username || 'root',
password: options.password || '',
database: options.endpoint || 'es_extended',
database: options.endpoint,
charset: 'utf8mb4_unicode_ci',
connectTimeout: 30000,
...options.options,
Expand Down

0 comments on commit 8a3fa20

Please sign in to comment.