File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ import { MongoDBResponse } from '../cmap/wire_protocol/responses';
1111import { CommandOperation } from '../operations/command' ;
1212import { ReadPreference } from '../read_preference' ;
1313import { MongoDBNamespace } from '../utils' ;
14- import { Aspect } from './operation' ;
14+ import { Aspect , defineAspects } from './operation' ;
1515
1616export class EndSessionsOperation extends CommandOperation < void > {
17- static override aspects = new Set ( [ Aspect . WRITE_OPERATION ] ) ;
18-
19- override writeConcern ?: WriteConcern | undefined = { w : 0 } ;
17+ override writeConcern : WriteConcern = { w : 0 } ;
2018 override ns = MongoDBNamespace . fromString ( 'admin.$cmd' ) ;
2119 override SERVER_COMMAND_RESPONSE_TYPE = MongoDBResponse ;
2220
@@ -42,3 +40,5 @@ export class EndSessionsOperation extends CommandOperation<void> {
4240 return 'endSessions' ;
4341 }
4442}
43+
44+ defineAspects ( EndSessionsOperation , Aspect . WRITE_OPERATION ) ;
You can’t perform that action at this time.
0 commit comments