@@ -75,7 +75,7 @@ export class Admin {
75
75
*/
76
76
async command ( command : Document , options ?: RunCommandOptions ) : Promise < Document > {
77
77
return executeOperation (
78
- this . s . db . s . client ,
78
+ this . s . db . client ,
79
79
new RunCommandOperation ( this . s . db , command , { dbName : 'admin' , ...options } )
80
80
) ;
81
81
}
@@ -138,7 +138,7 @@ export class Admin {
138
138
: undefined ;
139
139
const password = typeof passwordOrOptions === 'string' ? passwordOrOptions : undefined ;
140
140
return executeOperation (
141
- this . s . db . s . client ,
141
+ this . s . db . client ,
142
142
new AddUserOperation ( this . s . db , username , password , { dbName : 'admin' , ...options } )
143
143
) ;
144
144
}
@@ -151,7 +151,7 @@ export class Admin {
151
151
*/
152
152
async removeUser ( username : string , options ?: RemoveUserOptions ) : Promise < boolean > {
153
153
return executeOperation (
154
- this . s . db . s . client ,
154
+ this . s . db . client ,
155
155
new RemoveUserOperation ( this . s . db , username , { dbName : 'admin' , ...options } )
156
156
) ;
157
157
}
@@ -167,7 +167,7 @@ export class Admin {
167
167
options : ValidateCollectionOptions = { }
168
168
) : Promise < Document > {
169
169
return executeOperation (
170
- this . s . db . s . client ,
170
+ this . s . db . client ,
171
171
new ValidateCollectionOperation ( this , collectionName , options )
172
172
) ;
173
173
}
@@ -178,7 +178,7 @@ export class Admin {
178
178
* @param options - Optional settings for the command
179
179
*/
180
180
async listDatabases ( options ?: ListDatabasesOptions ) : Promise < ListDatabasesResult > {
181
- return executeOperation ( this . s . db . s . client , new ListDatabasesOperation ( this . s . db , options ) ) ;
181
+ return executeOperation ( this . s . db . client , new ListDatabasesOperation ( this . s . db , options ) ) ;
182
182
}
183
183
184
184
/**
0 commit comments