Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Jan 3, 2024
1 parent 60f2469 commit 5322cf6
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 86 deletions.
228 changes: 150 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/mongo_logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ export function stringifyWithMaxLen(
maxDocumentLength: number,
options: EJSONOptions = {}
): string {
maxDocumentLength = 20;
let strToTruncate: string;
if (typeof value === 'function') {
strToTruncate = value.toString();
Expand Down
4 changes: 2 additions & 2 deletions src/operations/execute_operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async function executeOperationAsync<
}

const server = await topology.selectServerAsync(selector, {
session: session,
session,
operationName: operation.commandName
});

Expand Down Expand Up @@ -255,7 +255,7 @@ async function retryOperation<

// select a new server, and attempt to retry the operation
const server = await topology.selectServerAsync(selector, {
session: session,
session,
operationName: operation.commandName
});

Expand Down
Loading

0 comments on commit 5322cf6

Please sign in to comment.