Skip to content

Commit

Permalink
fix(aggregation): fix field name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sintendo authored and mbroadst committed Apr 4, 2019
1 parent 61e5bcb commit 4235d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aggregation_cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ AggregationCursor.prototype.batchSize = function(value) {
if (this.s.state === AggregationCursor.CLOSED || this.isDead())
throw MongoError.create({ message: 'Cursor is closed', driver: true });
if (typeof value !== 'number')
throw MongoError.create({ message: 'batchSize requires an integer', drvier: true });
throw MongoError.create({ message: 'batchSize requires an integer', driver: true });
if (this.s.cmd.cursor) this.s.cmd.cursor.batchSize = value;
this.setCursorBatchSize(value);
return this;
Expand Down

0 comments on commit 4235d04

Please sign in to comment.