paidup-product-connect
Advanced tools
Comparing version 0.4.9 to 0.4.10
@@ -61,4 +61,4 @@ module.exports = { | ||
"geojson": {}, | ||
"visitbility": false, | ||
"status": false, | ||
"visitbility": true, | ||
"status": true, | ||
"images": {main:'someUrl'}, | ||
@@ -106,3 +106,4 @@ "categories": [], | ||
] | ||
}`}, | ||
}` | ||
}, | ||
error: { | ||
@@ -157,4 +158,6 @@ description: 'error unexpected', | ||
prodJson._id = prod.entityId; | ||
for (var key in prodJson.paymentPlans) { | ||
prodJson.paymentPlans[key].dues = prodJson.paymentPlans[key].dues.map(function(ele){ | ||
prodJson.paymentPlans[key].dues.forEach(function(ele, idx, arr){ | ||
var dc = new Date(ele.dateCharge) | ||
@@ -166,10 +169,9 @@ if(dc < today ){ | ||
} | ||
return ele; | ||
}); | ||
} | ||
category.products.push(prodJson); | ||
} | ||
result.push(category); | ||
}); | ||
result.push(category); | ||
}catch (err){ | ||
@@ -179,7 +181,6 @@ console.log(err) | ||
}); | ||
console.log(result) | ||
return exits.success(JSON.stringify({ | ||
status: resp.status, | ||
body: result | ||
}) ) | ||
})) | ||
} | ||
@@ -186,0 +187,0 @@ }) |
{ | ||
"name": "paidup-product-connect", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"description": "Connector for PaidUp Microservice Product", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20715
606