changed function name from returnCollectios to returnCollection

This commit is contained in:
Dhroov7
2019-12-10 13:15:49 +05:30
parent b349053c97
commit d0fa30f079

View File

@@ -70,14 +70,14 @@ module.exports = {
let result;
conversionResult = conversionResult || convertedSpec.result;
function returnCollections (resultSpec) {
function returnCollection (resultSpec) {
if (resultSpec.type === 'collection') {
return true;
}
}
// filtering out the collections from the convertedSpec
result = convertedSpec.output.filter(returnCollections);
result = convertedSpec.output.filter(returnCollection);
convertedCollections.push(result[0]);
}
else {