File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,20 @@ import { ToolArgs, OperationType } from "../../tool.js";
55
66export class DropSearchIndexTool extends MongoDBToolBase {
77 protected name = "drop-search-index" ;
8- protected description =
9- "Deletes a text or vector search index from the database." ;
8+ protected description = "Deletes a text or vector search index from the database." ;
109 protected argsShape = {
1110 ...DbOperationArgs ,
1211 indexName : z . string ( ) . describe ( "The name of the search or vector index to delete" ) ,
1312 } ;
1413 protected operationType : OperationType = "delete" ;
1514
16- protected async execute ( { database, collection, indexName } : ToolArgs < typeof this . argsShape > ) : Promise < CallToolResult > {
15+ protected async execute ( {
16+ database,
17+ collection,
18+ indexName,
19+ } : ToolArgs < typeof this . argsShape > ) : Promise < CallToolResult > {
1720 const provider = await this . ensureConnected ( ) ;
18- const result = await provider . dropSearchIndex ( database , collection , indexName ) ;
21+ await provider . dropSearchIndex ( database , collection , indexName ) ;
1922
2023 return {
2124 content : [
@@ -26,4 +29,4 @@ export class DropSearchIndexTool extends MongoDBToolBase {
2629 ] ,
2730 } ;
2831 }
29- }
32+ }
You can’t perform that action at this time.
0 commit comments