Skip to content

Commit 5322cf6

Browse files
requested changes
1 parent 60f2469 commit 5322cf6

File tree

5 files changed

+155
-86
lines changed

5 files changed

+155
-86
lines changed

package-lock.json

Lines changed: 150 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mongo_logger.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ export function stringifyWithMaxLen(
383383
maxDocumentLength: number,
384384
options: EJSONOptions = {}
385385
): string {
386-
maxDocumentLength = 20;
387386
let strToTruncate: string;
388387
if (typeof value === 'function') {
389388
strToTruncate = value.toString();

src/operations/execute_operation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async function executeOperationAsync<
152152
}
153153

154154
const server = await topology.selectServerAsync(selector, {
155-
session: session,
155+
session,
156156
operationName: operation.commandName
157157
});
158158

@@ -255,7 +255,7 @@ async function retryOperation<
255255

256256
// select a new server, and attempt to retry the operation
257257
const server = await topology.selectServerAsync(selector, {
258-
session: session,
258+
session,
259259
operationName: operation.commandName
260260
});
261261

0 commit comments

Comments
 (0)