diff --git a/DebugLog.js b/DebugLog.js index 6c78446ef..06e758a42 100644 --- a/DebugLog.js +++ b/DebugLog.js @@ -1,4 +1,4 @@ -exports.newDebugLog = function newDebugLog() { +exports.newDebugLog = function newDebugLog() { const ROOT_DIR = './'; const MODULE_NAME = "DebugLog"; @@ -142,10 +142,5 @@ return str.length < max ? pad("0" + str, max) : str; } - function spacePad(str, max) { - str = str.toString(); - return str.length < max ? spacePad(" " + str, max) : str; - } - }; diff --git a/Integrations/FileStorage.js b/Integrations/FileStorage.js index bdb2930af..c897aeec7 100644 --- a/Integrations/FileStorage.js +++ b/Integrations/FileStorage.js @@ -45,11 +45,12 @@ exports.newFileStorage = function newFileStorage() { return } let response = res.data.data.web_FileContent - if (response) + if (response){ callBackFunction(global.DEFAULT_OK_RESPONSE, response) - else - callBackFunction(global.CUSTOM_FAIL_RESPONSE) - + } else{ + let error = { code: 'The specified key does not exist.' } + callBackFunction(error) + } }).catch(error => { if (ERROR_LOG === true) { console.log('newFileStorage: [ERROR] getTextFile -> Invalid JSON received. ') } if (ERROR_LOG === true) { console.log('newFileStorage: [ERROR] getTextFile -> error = ', error) } @@ -104,7 +105,7 @@ exports.newFileStorage = function newFileStorage() { for (var i = 0; i < ecosystem.devTeams.length; i++) { for (key in ecosystem.devTeams[i]) { - if (key ==='codeName' && ecosystem.devTeams[i][key].indexOf(devTeamName)!=-1) { + if (key ==='codeName' && ecosystem.devTeams[i][key].toLowerCase().indexOf(devTeamName.toLowerCase())!=-1) { return ecosystem.devTeams[i].host } } diff --git a/docker-compose.yml b/docker-compose.yml index 737672175..7b4f002ee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: node: - image: superalgos/clone-executor:1.0.30 + image: superalgos/clone-executor:1.0.32 build: context: . dockerfile: ./Dockerfile diff --git a/package.json b/package.json index 39f7c71c0..a67b07eb0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/clone-executor", - "version": "1.0.30", + "version": "1.0.32", "description": "Module responsible for executing the bots on the cloud.", "author": "Superalgos, ltd.", "license": "Apache-2.0",