Skip to content

Commit

Permalink
Readd prototype check
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Oct 17, 2024
1 parent 8b8ef7f commit 232a8b0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/cli-repl/src/cli-repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,11 +1017,12 @@ export class CliRepl implements MongoshIOProvider {
}

async isTlsKeyFilePasswordMissingURI(
searchParams: unknown
searchParams: ReturnType<
typeof ConnectionString.prototype.typedSearchParams<DevtoolsConnectOptions>
>
): Promise<boolean> {
const searchMap = searchParams as Map<keyof DevtoolsConnectOptions, string>;
const tlsCertificateKeyFile = searchMap.get('tlsCertificateKeyFile');
const tlsCertificateKeyFilePassword = searchMap.get(
const tlsCertificateKeyFile = searchParams.get('tlsCertificateKeyFile');
const tlsCertificateKeyFilePassword = searchParams.get(
'tlsCertificateKeyFilePassword'
);

Expand Down

0 comments on commit 232a8b0

Please sign in to comment.