Skip to content

Commit bc9a292

Browse files
committed
chore: fix bug, use the trimmed index definitions as they are smaller
1 parent 018f752 commit bc9a292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/mongodb/search/listSearchIndexes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class ListSearchIndexesTool extends MongoDBToolBase {
2727
return {
2828
content: formatUntrustedData(
2929
`Found ${trimmedIndexDefinitions.length} search and vector search indexes in ${database}.${collection}`,
30-
indexes.map((index) => EJSON.stringify(index)).join("\n")
30+
trimmedIndexDefinitions.map((index) => EJSON.stringify(index)).join("\n")
3131
),
3232
};
3333
} else {

0 commit comments

Comments
 (0)