Skip to content

Commit 8851a28

Browse files
authored
docs: fix event names in gridFS tutorial
1 parent 8a69ed6 commit 8851a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/content/tutorials/gridfs/streaming.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ bucket.openDownloadStreamByName('meistersinger.mp3').
166166
on('error', function(error) {
167167
assert.ifError(error);
168168
}).
169-
on('end', function() {
169+
on('finish', function() {
170170
console.log('done!');
171171
process.exit(0);
172172
});
@@ -185,7 +185,7 @@ bucket.openDownloadStreamByName('meistersinger.mp3').
185185
on('error', function(error) {
186186
assert.ifError(error);
187187
}).
188-
on('end', function() {
188+
on('finish', function() {
189189
console.log('done!');
190190
process.exit(0);
191191
});

0 commit comments

Comments
 (0)