File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class ConnectClusterTool extends AtlasToolBase {
201201 for ( let i = 0 ; i < 60 ; i ++ ) {
202202 const state = await this . queryConnection ( projectId , clusterName ) ;
203203 switch ( state ) {
204- case "connected" :
204+ case "connected" : {
205205 return {
206206 content : [
207207 {
@@ -210,12 +210,14 @@ export class ConnectClusterTool extends AtlasToolBase {
210210 } ,
211211 ] ,
212212 } ;
213- case "connecting" :
213+ }
214+ case "connecting" : {
214215 break ;
216+ }
215217 case "connected-to-other-cluster" :
216218 case "disconnected" :
217219 case "unknown" :
218- default :
220+ default : {
219221 await this . session . disconnect ( ) ;
220222 const connectionString = await this . prepareClusterConnection ( projectId , clusterName ) ;
221223
@@ -229,6 +231,7 @@ export class ConnectClusterTool extends AtlasToolBase {
229231 ) ;
230232 } ) ;
231233 break ;
234+ }
232235 }
233236
234237 await sleep ( 500 ) ;
You can’t perform that action at this time.
0 commit comments