From f33495909522bbf40f740b464c6f52ac631b9fef Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 24 May 2018 18:15:17 +0200 Subject: [PATCH] Bug fixes when running in cloud mode --- Server/BotsScripts.js | 7 +++++-- Server/CloudScripts.js | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Server/BotsScripts.js b/Server/BotsScripts.js index 3a9f521b6..98cee047b 100644 --- a/Server/BotsScripts.js +++ b/Server/BotsScripts.js @@ -29,6 +29,9 @@ ecosystem = pEcosystem; ecosystemObject = pEcosystemObject; + github.initialize(githubData); + storage.initialize(storageData, serverConfig); + callBackFunction(); } @@ -92,7 +95,7 @@ if (CONSOLE_LOG === true) { console.log("[INFO] BotScripts -> retrieveScripts -> Cloud -> Entering Case."); } - storage.getStorageData(path, moduleName, onDataArrived); + storage.getStorageData(pDevTeam, pBot, moduleName, onDataArrived); function onDataArrived(pData) { @@ -208,7 +211,7 @@ if (CONSOLE_LOG === true) { console.log("[INFO] BotScripts -> retrieveScripts -> Cloud -> Entering Case."); } - storage.getStorageData(path, moduleName, onDataArrived); + storage.getStorageData(pDevTeam, pBot, moduleName, onDataArrived); function onDataArrived(pData) { diff --git a/Server/CloudScripts.js b/Server/CloudScripts.js index 4b12c50cd..dc921b5e2 100644 --- a/Server/CloudScripts.js +++ b/Server/CloudScripts.js @@ -29,6 +29,9 @@ ecosystem = pEcosystem; ecosystemObject = pEcosystemObject; + github.initialize(githubData); + storage.initialize(storageData, serverConfig); + callBackFunction(); }