Skip to content

Commit 8ad0c48

Browse files
committed
fix: lint
1 parent aed3bba commit 8ad0c48

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/tools/atlas/createDBUser.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { z } from "zod";
22
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
33
import { AtlasToolBase } from "./atlasTool.js";
44
import { ToolArgs } from "../tool.js";
5-
import { CloudDatabaseUser, DatabaseUserRole, UserScope } from "../../common/atlas/openapi.js";
5+
import { CloudDatabaseUser, DatabaseUserRole } from "../../common/atlas/openapi.js";
66

77
export class CreateDBUserTool extends AtlasToolBase {
88
protected name = "atlas-create-db-user";
@@ -60,19 +60,3 @@ export class CreateDBUserTool extends AtlasToolBase {
6060
};
6161
}
6262
}
63-
64-
function formatRoles(roles?: DatabaseUserRole[]) {
65-
if (!roles?.length) {
66-
return "N/A";
67-
}
68-
return roles
69-
.map((role) => `${role.roleName}@${role.databaseName}${role.collectionName ? `:${role.collectionName}` : ""}`)
70-
.join(", ");
71-
}
72-
73-
function formatScopes(scopes?: UserScope[]) {
74-
if (!scopes?.length) {
75-
return "All";
76-
}
77-
return scopes.map((scope) => `${scope.type}:${scope.name}`).join(", ");
78-
}

src/tools/atlas/listClusters.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { z } from "zod";
2-
import { config } from "../../config.js";
32
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
43
import { AtlasToolBase } from "./atlasTool.js";
54
import { ToolArgs } from "../tool.js";

0 commit comments

Comments
 (0)