Legacy Code Reorganized

This commit is contained in:
Luis Fernando Molina committed 2020-11-21 13:09:29 +01:00
1 parent f4113ce2cb
commit 37a7ca9228
39 files changed
+37 -34

No files matched your search

+8 -2
View File
@@ -34,7 +34,13 @@
return
}
let filePath = bot.dataMine + "/" + "bots" + "/" + bot.processNode.referenceParent.parentNode.config.repo + "/" + pProcessConfig.codeName
let filePath =
bot.processNode.referenceParent.parentNode.parentNode.project + // project
'/Bots-Plotters-Code/' +
bot.dataMine +
"/" + "bots" + "/" +
bot.processNode.referenceParent.parentNode.config.repo + "/" +
pProcessConfig.codeName
filePath += "/User.Bot.js"
fileStorage.getTextFile(filePath, onBotDownloaded);
@@ -63,7 +69,7 @@
function onCommonsDownloaded(err, text) {
if (err.result !== global.DEFAULT_OK_RESPONSE.result) {
parentLogger.write(MODULE_NAME, "[WARN] initialize -> onBotDownloaded -> onCommonsDownloaded -> Commons not found: " + err.message);
parentLogger.write(MODULE_NAME, "[WARN] initialize -> onBotDownloaded -> onCommonsDownloaded -> Commons not found: " + err.message);
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
}