File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/operations/search_indexes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export interface SearchIndexDescription extends Document {
22
22
}
23
23
24
24
/** @internal */
25
- export class CreateSearchIndexesOperation extends ModernizedOperation < string [ ] > {
25
+ export class CreateSearchIndexesOperation extends ModernizedOperation < Document > {
26
26
override SERVER_COMMAND_RESPONSE_TYPE = MongoDBResponse ;
27
27
private readonly collection : Collection ;
28
28
private readonly descriptions : ReadonlyArray < SearchIndexDescription > ;
@@ -47,7 +47,7 @@ export class CreateSearchIndexesOperation extends ModernizedOperation<string[]>
47
47
}
48
48
49
49
override handleOk ( response : InstanceType < typeof this . SERVER_COMMAND_RESPONSE_TYPE > ) : string [ ] {
50
- return response . toObject ( this . bsonOptions ) . indexesCreated . map ( ( val : { name : any } ) => val . name ) ;
50
+ return super . handleOk ( response ) . indexesCreated . map ( ( val : { name : any } ) => val . name ) ;
51
51
}
52
52
53
53
override buildOptions ( timeoutContext : TimeoutContext ) : ServerCommandOptions {
You can’t perform that action at this time.
0 commit comments