Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
HanaPearlman committed Nov 19, 2020
1 parent fab6697 commit 0bbcad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations/aggregate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class AggregateOperation<T = Document> extends CommandOperation<Aggregate
this.readPreference = ReadPreference.primary;
}

if (options?.explain && this.writeConcern) {
if (this.explain && this.writeConcern) {
throw new MongoError('"explain" cannot be used on an aggregate call with writeConcern');
}

Expand Down

0 comments on commit 0bbcad3

Please sign in to comment.