Commit 796f3f9f authored by Antony Orlovsky's avatar Antony Orlovsky

Corrected empty metadata of files

parent 9e26685a
......@@ -12,7 +12,7 @@ module.exports.getModelFunctions = (model, logger) => {
let fileOptions = {
filename: filename,
contentType: mime || 'text/plain',
metadata: meta
metadata: meta || {}
}
new model(fileOptions).write(fileStream, callback);
......@@ -23,7 +23,7 @@ module.exports.getModelFunctions = (model, logger) => {
let fileOptions = {
filename: filename,
contentType: mime || 'text/plain',
metadata: meta
metadata: meta || {}
}
new model(fileOptions).write(fileStream, (err, data) => {
if (err)
......
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