Skip to content

Commit 0b1881c

Browse files
renamed lookupDeploymentIdAndAddToTelemetryMetadata to lookupDeploymentId
1 parent 91ce76d commit 0b1881c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/tools/atlasLocal/atlasLocalTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/tools/atlasLocal/connect/connectDeployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: [

src/tools/atlasLocal/create/createDeployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: [

src/tools/atlasLocal/delete/deleteDeployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)