Corrected files reading file

parent 5062695c
......@@ -56,7 +56,7 @@ module.exports = bucket => {
read: fileId => {
return new Promise((s, r) => {
bucket.readFile(fileId, (err, data) => {
bucket.readFile({_id: fileId}, (err, data) => {
if (err) r(err);
else s(data);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment