From dfff4b387dfe7d9c1ca15ffd5d251e22d1a39db3 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 28 May 2021 02:29:46 +0200 Subject: [PATCH] API Data Fetcher DeepScan Bugs Fixed --- .../Bot-Modules/API-Data-Fetcher-Bot/FetchingProcess.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Projects/Superalgos/TS/Bot-Modules/API-Data-Fetcher-Bot/FetchingProcess.js b/Projects/Superalgos/TS/Bot-Modules/API-Data-Fetcher-Bot/FetchingProcess.js index 8bd901f01..8f5cc25b3 100644 --- a/Projects/Superalgos/TS/Bot-Modules/API-Data-Fetcher-Bot/FetchingProcess.js +++ b/Projects/Superalgos/TS/Bot-Modules/API-Data-Fetcher-Bot/FetchingProcess.js @@ -314,7 +314,7 @@ exports.newSuperalgosBotModulesFetchingProcess = function (processIndex) { let parametersMap = new Map() if (endpointNode.apiQueryParameters !== undefined) { for (let i = 0; i < endpointNode.apiQueryParameters.apiQueryParameters.length; i++) { - apiQueryParameter = endpointNode.apiQueryParameters.apiQueryParameters[i] + let apiQueryParameter = endpointNode.apiQueryParameters.apiQueryParameters[i] addParameterToMap(apiQueryParameter) } } @@ -322,7 +322,7 @@ exports.newSuperalgosBotModulesFetchingProcess = function (processIndex) { The parameters defined at the Data Mine will overwrite whatever is at the API Map */ if (productDefinition.apiQueryParameters !== undefined) { - for (j = 0; j < productDefinition.apiQueryParameters.apiQueryParameters.length; j++) { + for (let j = 0; j < productDefinition.apiQueryParameters.apiQueryParameters.length; j++) { let apiQueryParameter = productDefinition.apiQueryParameters.apiQueryParameters[j] addParameterToMap(apiQueryParameter) } @@ -365,7 +365,7 @@ exports.newSuperalgosBotModulesFetchingProcess = function (processIndex) { let parametersMap = new Map() if (endpointNode.apiPathParameters !== undefined) { for (let i = 0; i < endpointNode.apiPathParameters.apiPathParameters.length; i++) { - apiPathParameter = endpointNode.apiPathParameters.apiPathParameters[i] + let apiPathParameter = endpointNode.apiPathParameters.apiPathParameters[i] addParameterToMap(apiPathParameter) } } @@ -373,7 +373,7 @@ exports.newSuperalgosBotModulesFetchingProcess = function (processIndex) { The parameters defined at the Data Mine will overwrite whatever is at the API Map */ if (productDefinition.apiPathParameters !== undefined) { - for (j = 0; j < productDefinition.apiPathParameters.apiPathParameters.length; j++) { + for (let j = 0; j < productDefinition.apiPathParameters.apiPathParameters.length; j++) { let apiPathParameter = productDefinition.apiPathParameters.apiPathParameters[j] addParameterToMap(apiPathParameter) }