From 8851a28be7589eeeb96486cd0810fca927a81ab1 Mon Sep 17 00:00:00 2001 From: Egor Shumanskiy <40317982+EgorShum@users.noreply.github.com> Date: Fri, 24 Apr 2020 20:29:50 +0700 Subject: [PATCH] docs: fix event names in gridFS tutorial --- docs/reference/content/tutorials/gridfs/streaming.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/content/tutorials/gridfs/streaming.md b/docs/reference/content/tutorials/gridfs/streaming.md index 9a746d4d77..910ced50d4 100644 --- a/docs/reference/content/tutorials/gridfs/streaming.md +++ b/docs/reference/content/tutorials/gridfs/streaming.md @@ -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); }); @@ -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); });