Fixed missing return causing no saves.

This commit is contained in:
2018-05-05 22:39:21 +02:00
parent 06e01fa680
commit cdff8354a7

View File

@@ -35,7 +35,7 @@ module.exports = function(posts) {
return fetchItem(source, 0, post); return fetchItem(source, 0, post);
})).then(streams => { })).then(streams => {
if(streams.filter(stream => stream).length > 0) { if(streams.filter(stream => stream).length > 0) {
Object.assign({}, item, {streams}) return Object.assign({}, item, {streams})
} }
return null; return null;