Skip to content

Commit 246eff9

Browse files
committed
chore(NODE-3521): find/agg cursor session always there
1 parent ddc4d24 commit 246eff9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cursor/find_cursor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class FindCursor<TSchema = Document> extends AbstractCursor<TSchema> {
6868
}
6969

7070
/** @internal */
71-
_initialize(session: ClientSession | undefined, callback: Callback<ExecutionResult>): void {
71+
_initialize(session: ClientSession, callback: Callback<ExecutionResult>): void {
7272
const findOperation = new FindOperation(undefined, this.namespace, this[kFilter], {
7373
...this[kBuiltOptions], // NOTE: order matters here, we may need to refine this
7474
...this.cursorOptions,

test/unit/cursor/find_cursor.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const test = {};
1212
describe('Find Cursor', function () {
1313
describe('#next', function () {
1414
afterEach(function () {
15-
mock.cleanup()
15+
mock.cleanup();
1616
});
1717
beforeEach(function () {
1818
return mock.createServer().then(mockServer => {

0 commit comments

Comments
 (0)