Fixed text posts not passing streams correctly since previous change.
This commit is contained in:
parent
80829e52af
commit
9e9ed9de07
|
@ -42,7 +42,7 @@ module.exports = function(posts, user) {
|
||||||
return Promise.resolve().then(() => {
|
return Promise.resolve().then(() => {
|
||||||
return fs.ensureDir(path.dirname(filepath));
|
return fs.ensureDir(path.dirname(filepath));
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return save(filepath, item.streams, item);
|
return save(filepath, item.streams || item.stream, item);
|
||||||
}).then(sourcePaths => {
|
}).then(sourcePaths => {
|
||||||
if(item.mux) {
|
if(item.mux) {
|
||||||
return mux(filepath, sourcePaths, item);
|
return mux(filepath, sourcePaths, item);
|
||||||
|
|
Loading…
Reference in New Issue