Hello.
I use this library in my project, and I found a bug in GridWriteStream constructor.
In README.md, written as following:
var writestream = gfs.createWriteStream([options]);
fs.createReadStream('/some/path').pipe(writestream);
So I wrote this code and ran it.
var writestream = gfs.createWriteStream();
It failed, and it output some error logs.
TypeError: Cannot read property '_id' of undefined
at new GridWriteStream (C:\Users\pine\Dropbox\Repos\_fork\gridfs-stream\lib\writestream.js:44:12)
at Grid.createWriteStream (C:\Users\pine\Dropbox\Repos\_fork\gridfs-stream\lib\index.js:42:10)
I fixed this bug, and added some tests.
Thank you.
Hello. I use this library in my project, and I found a bug in GridWriteStream constructor.
In README.md, written as following:
So I wrote this code and ran it.
It failed, and it output some error logs.
I fixed this bug, and added some tests. Thank you.