Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3562242
D4676.id15087.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
578 B
Referenced Files
None
Subscribers
None
D4676.id15087.diff
View Options
diff --git a/keyserver/src/database/database.js b/keyserver/src/database/database.js
--- a/keyserver/src/database/database.js
+++ b/keyserver/src/database/database.js
@@ -18,8 +18,9 @@
if (migrationConnection) {
return migrationConnection;
}
- const dbConfig = await getDBConfig();
- migrationConnection = await mysqlPromise.createConnection(dbConfig);
+ const { dbType, ...dbConfig } = await getDBConfig();
+ const options: ConnectionOptions = dbConfig;
+ migrationConnection = await mysqlPromise.createConnection(options);
return migrationConnection;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 28, 10:08 AM (7 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2725571
Default Alt Text
D4676.id15087.diff (578 B)
Attached To
Mode
D4676: [keyserver] Avoid passing dbType to mysql2 in getMigrationConnection
Attached
Detach File
Event Timeline
Log In to Comment