Skip to content

Commit

Permalink
async keyword withTransaction and agg.explain
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Jan 20, 2023
1 parent bfaf3c9 commit 217101d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cursor/aggregation_cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class AggregationCursor<TSchema = any> extends AbstractCursor<TSchema> {
}

/** Execute the explain for the cursor */
explain(verbosity?: ExplainVerbosityLike): Promise<Document> {
async explain(verbosity?: ExplainVerbosityLike): Promise<Document> {
return executeOperation(
this.client,
new AggregateOperation(this.namespace, this[kPipeline], {
Expand Down
2 changes: 1 addition & 1 deletion src/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export class ClientSession extends TypedEventEmitter<ClientSessionEvents> {
* @param options - optional settings for the transaction
* @returns A raw command response or undefined
*/
withTransaction<T = void>(
async withTransaction<T = void>(
fn: WithTransactionCallback<T>,
options?: TransactionOptions
): Promise<Document | undefined> {
Expand Down

0 comments on commit 217101d

Please sign in to comment.