Skip to content

Commit a432320

Browse files
W-A-Jamesnbbeeken
authored andcommitted
pass timeoutMS through to listDatabases
1 parent 6f9925c commit a432320

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/admin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ export class Admin {
155155
* @param options - Optional settings for the command
156156
*/
157157
async listDatabases(options?: ListDatabasesOptions): Promise<ListDatabasesResult> {
158-
return await executeOperation(this.s.db.client, new ListDatabasesOperation(this.s.db, options));
158+
return await executeOperation(
159+
this.s.db.client,
160+
new ListDatabasesOperation(this.s.db, { timeoutMS: this.s.db.timeoutMS, ...options })
161+
);
159162
}
160163

161164
/**

0 commit comments

Comments
 (0)