Skip to content

Commit 4235d04

Browse files
Sintendombroadst
authored andcommitted
fix(aggregation): fix field name typo
1 parent 61e5bcb commit 4235d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/aggregation_cursor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ AggregationCursor.prototype.batchSize = function(value) {
148148
if (this.s.state === AggregationCursor.CLOSED || this.isDead())
149149
throw MongoError.create({ message: 'Cursor is closed', driver: true });
150150
if (typeof value !== 'number')
151-
throw MongoError.create({ message: 'batchSize requires an integer', drvier: true });
151+
throw MongoError.create({ message: 'batchSize requires an integer', driver: true });
152152
if (this.s.cmd.cursor) this.s.cmd.cursor.batchSize = value;
153153
this.setCursorBatchSize(value);
154154
return this;

0 commit comments

Comments
 (0)