File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1145,9 +1145,9 @@ Aggregate.prototype.finally = function(onFinally) {
1145
1145
* @api public
1146
1146
*/
1147
1147
1148
- Aggregate . prototype [ Symbol . asyncIterator ] = function ( ) {
1149
- return this . cursor ( { useMongooseAggCursor : true } ) . transformNull ( ) . _transformForAsyncIterator ( ) ;
1150
- } ;
1148
+ Aggregate . prototype [ Symbol . asyncIterator ] = function ( ) {
1149
+ return this . cursor ( { useMongooseAggCursor : true } ) . transformNull ( ) . _transformForAsyncIterator ( ) ;
1150
+ } ;
1151
1151
1152
1152
/*!
1153
1153
* Helpers
Original file line number Diff line number Diff line change @@ -5412,11 +5412,11 @@ Query.prototype.nearSphere = function() {
5412
5412
* @api public
5413
5413
*/
5414
5414
5415
- Query . prototype [ Symbol . asyncIterator ] = function queryAsyncIterator ( ) {
5416
- // Set so QueryCursor knows it should transform results for async iterators into `{ value, done }` syntax
5417
- this . _mongooseOptions . _asyncIterator = true ;
5418
- return this . cursor ( ) ;
5419
- } ;
5415
+ Query . prototype [ Symbol . asyncIterator ] = function queryAsyncIterator ( ) {
5416
+ // Set so QueryCursor knows it should transform results for async iterators into `{ value, done }` syntax
5417
+ this . _mongooseOptions . _asyncIterator = true ;
5418
+ return this . cursor ( ) ;
5419
+ } ;
5420
5420
5421
5421
/**
5422
5422
* Specifies a `$polygon` condition
You can’t perform that action at this time.
0 commit comments