New Product Panel Working

This commit is contained in:
Luis Fernando Molina committed 2018-03-02 11:18:54 +01:00
1 parent 105768ba17
commit 3dec0438cf
15 files changed
+198 -188

No files matched your search

+14 -3
View File
@@ -18,10 +18,21 @@ function newFileCloud() {
}
function getFile(pProduct, pExchange, pMarket, pPeriodName, pDatetime, callBackFunction) {
function getFile(pSet, pExchange, pMarket, pPeriodName, pDatetime, callBackFunction) {
let fileName = pProduct.fileName;
let filePath = pProduct.filePath;
let fileName = pSet.fileName;
let filePath = pSet.filePath;
if (fileName === undefined) {
console.log("Inconsistant data. Check the following. ");
console.log(JSON.stringify(pSet));
console.log(JSON.stringify(pExchange));
console.log(JSON.stringify(pMarket));
console.log(JSON.stringify(pPeriodName));
throw ("Inconsistant data received.");
}
fileName = fileName.replace("@AssetA", pMarket.assetA);
fileName = fileName.replace("@AssetB", pMarket.assetB);