Commit 31c83796 authored by Antony Orlovsky's avatar Antony Orlovsky

Merge branch 'develop' into 'develop'

Corrected empty metadata of files

See merge request !11
parents 9e26685a 796f3f9f
......@@ -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