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; let result;
conversionResult = conversionResult || convertedSpec.result; conversionResult = conversionResult || convertedSpec.result;
function returnCollections (resultSpec) { function returnCollection (resultSpec) {
if (resultSpec.type === 'collection') { if (resultSpec.type === 'collection') {
return true; return true;
} }
} }
// filtering out the collections from the convertedSpec // filtering out the collections from the convertedSpec
result = convertedSpec.output.filter(returnCollections); result = convertedSpec.output.filter(returnCollection);
convertedCollections.push(result[0]); convertedCollections.push(result[0]);
} }
else { else {