File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ please log a ticket here: https://github.com/mongodb-js/mongodb-mcp-server/issue
3939 return this . executeWithAtlasLocalClient ( client , ...args ) ;
4040 }
4141
42- protected async lookupDeploymentIdAndAddToTelemetryMetadata ( client : Client , containerId : string ) : Promise < void > {
42+ protected async lookupDeploymentId ( client : Client , containerId : string ) : Promise < void > {
4343 // Don't run if telemetry is disabled
4444 if ( this . telemetry . isTelemetryEnabled ( ) ) {
4545 return ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class ConnectDeploymentTool extends AtlasLocalToolBase {
2323 await this . session . connectToMongoDB ( { connectionString } ) ;
2424
2525 // Lookup the deployment id and add it to the telemetry metadata
26- await this . lookupDeploymentIdAndAddToTelemetryMetadata ( client , deploymentName ) ;
26+ await this . lookupDeploymentId ( client , deploymentName ) ;
2727
2828 return {
2929 content : [
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class CreateDeploymentTool extends AtlasLocalToolBase {
2727 const deployment = await client . createDeployment ( deploymentOptions ) ;
2828
2929 // Lookup the deployment id and add it to the telemetry metadata
30- await this . lookupDeploymentIdAndAddToTelemetryMetadata ( client , deployment . containerId ) ;
30+ await this . lookupDeploymentId ( client , deployment . containerId ) ;
3131
3232 return {
3333 content : [
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class DeleteDeploymentTool extends AtlasLocalToolBase {
1717 { deploymentName } : ToolArgs < typeof this . argsShape >
1818 ) : Promise < CallToolResult > {
1919 // Lookup the deployment id and add it to the telemetry metadata
20- await this . lookupDeploymentIdAndAddToTelemetryMetadata ( client , deploymentName ) ;
20+ await this . lookupDeploymentId ( client , deploymentName ) ;
2121
2222 // Delete the deployment
2323 await client . deleteDeployment ( deploymentName ) ;
You can’t perform that action at this time.
0 commit comments