File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- import type { ClientSession , Server } from '..' ;
2
1
import {
3
2
BSONSerializeOptions ,
4
3
Document ,
@@ -24,7 +23,9 @@ import { InsertOperation } from '../operations/insert';
24
23
import { AbstractOperation , Hint } from '../operations/operation' ;
25
24
import { makeUpdateStatement , UpdateOperation , UpdateStatement } from '../operations/update' ;
26
25
import { PromiseProvider } from '../promise_provider' ;
26
+ import type { Server } from '../sdam/server' ;
27
27
import type { Topology } from '../sdam/topology' ;
28
+ import type { ClientSession } from '../sessions' ;
28
29
import {
29
30
applyRetryableWrites ,
30
31
Callback ,
@@ -935,7 +936,7 @@ class BulkWriteShimOperation extends AbstractOperation {
935
936
this . bulkOperation = bulkOperation ;
936
937
}
937
938
938
- execute ( server : Server , session : ClientSession , callback : Callback < any > ) : void {
939
+ execute ( server : Server , session : ClientSession | undefined , callback : Callback < any > ) : void {
939
940
if ( this . options . session == null ) {
940
941
// An implicit session could have been created by 'executeOperation'
941
942
// So if we stick it on finalOptions here, each bulk operation
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ export class MongoUnexpectedServerResponseError extends MongoRuntimeError {
438
438
super ( message ) ;
439
439
}
440
440
441
- get name ( ) : string {
441
+ override get name ( ) : string {
442
442
return 'MongoUnexpectedServerResponseError' ;
443
443
}
444
444
}
You can’t perform that action at this time.
0 commit comments