fix(mongodb): support legacy driver fallback

This commit is contained in:
t8y2 committed 2026-06-15 14:07:31 +08:00
1 parent 090f073206
commit 7bb869d398
13 files changed
+205 -72

No files matched your search

@@ -8,6 +8,7 @@ export interface AgentDriverInstallState {
function agentDriverInstallKey(dbType: DatabaseType | undefined, driverProfile?: string): string | undefined {
if (dbType === "oracle") return "oracle";
if (dbType === "mongodb") return "mongodb";
return driverProfile && driverProfile !== dbType ? driverProfile : dbType;
}