Skip to content

Commit

Permalink
docs: fix event names in gridFS tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
shum-dev authored Apr 24, 2020
1 parent 8a69ed6 commit 8851a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/content/tutorials/gridfs/streaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ bucket.openDownloadStreamByName('meistersinger.mp3').
on('error', function(error) {
assert.ifError(error);
}).
on('end', function() {
on('finish', function() {
console.log('done!');
process.exit(0);
});
Expand All @@ -185,7 +185,7 @@ bucket.openDownloadStreamByName('meistersinger.mp3').
on('error', function(error) {
assert.ifError(error);
}).
on('end', function() {
on('finish', function() {
console.log('done!');
process.exit(0);
});
Expand Down

0 comments on commit 8851a28

Please sign in to comment.