fix(pool): Remove default database value from config

This commit is contained in:
Dunak authored and GitHub committed 2021-10-25 10:55:42 +02:00
1 parent 5d6ca06f49
commit 8a3fa20408
1 file changed
+2 -2
+2 -2
View File
@@ -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,
@@ -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,