Skip to content

Commit

Permalink
chore: leave a note to remove callback-form of aggregate in 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst authored and daprahamian committed Aug 13, 2019
1 parent 0b3e8f2 commit 771af5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,7 @@ Collection.prototype.aggregate = function(pipeline, options, callback) {
options
);

// TODO: remove this when NODE-2074 is resolved
if (typeof callback === 'function') {
callback(null, cursor);
return;
Expand Down
1 change: 1 addition & 0 deletions lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ Db.prototype.aggregate = function(pipeline, options, callback) {
options
);

// TODO: remove this when NODE-2074 is resolved
if (typeof callback === 'function') {
callback(null, cursor);
return;
Expand Down

0 comments on commit 771af5b

Please sign in to comment.