mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 14:38:50 +00:00
fix(pool): Remove default database value from config
This commit is contained in:
1 parent
5d6ca06f49
commit
8a3fa20408
1 file changed
+2
-2
+2
-2
@@ -31,7 +31,7 @@ const createConnection = () => {
|
|||||||
port: options.port || 3306,
|
port: options.port || 3306,
|
||||||
user: options.username || options.user || options.userid || 'root',
|
user: options.username || options.user || options.userid || 'root',
|
||||||
password: options.password || options.pass || '',
|
password: options.password || options.pass || '',
|
||||||
database: options.endpoint || options.database || 'es_extended',
|
database: options.endpoint || options.database,
|
||||||
charset: 'utf8mb4_unicode_ci',
|
charset: 'utf8mb4_unicode_ci',
|
||||||
connectTimeout: 30000,
|
connectTimeout: 30000,
|
||||||
...options.options,
|
...options.options,
|
||||||
@@ -53,7 +53,7 @@ const createConnection = () => {
|
|||||||
port: options.hosts[0].port || 3306,
|
port: options.hosts[0].port || 3306,
|
||||||
user: options.username || 'root',
|
user: options.username || 'root',
|
||||||
password: options.password || '',
|
password: options.password || '',
|
||||||
database: options.endpoint || 'es_extended',
|
database: options.endpoint,
|
||||||
charset: 'utf8mb4_unicode_ci',
|
charset: 'utf8mb4_unicode_ci',
|
||||||
connectTimeout: 30000,
|
connectTimeout: 30000,
|
||||||
...options.options,
|
...options.options,
|
||||||
|
|||||||
Reference in new issue
Block a user