mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
fix(config): don't set connection info with falsey key
When using the semicolon connection string, a trailing semicolon displays an error about an invalid configuration option.
This commit is contained in:
1 parent
b2387fc33a
commit
37a3a7cd0a
1 file changed
+1
-1
+1
-1
@@ -72,7 +72,7 @@ export const connectionOptions = (() => {
|
||||
.split(';')
|
||||
.reduce<Record<string, string>>((connectionInfo, parameter) => {
|
||||
const [key, value] = parameter.split('=');
|
||||
connectionInfo[key] = value;
|
||||
if (key) connectionInfo[key] = value;
|
||||
return connectionInfo;
|
||||
}, {});
|
||||
|
||||
|
||||
Reference in new issue
Block a user