Store all tags under the all key

This commit is contained in:
Lynn Smeria 2018-11-11 11:34:25 +01:00
parent 2b41b07860
commit 2d0e9b9f67

View file

@ -27,6 +27,11 @@ module.exports = {
},
{}
);
// Create a single tag object from the transformed tag data
metaData.all = Object.keys(metaData.transformed).reduce(
(all, key) => _.assign(all, metaData.transformed[key]),
{}
);
return metaData;
},