Merge pull request #49 from AAVikings/develop

Module update
This commit is contained in:
benme authored and GitHub committed 2019-07-01 16:31:41 -03:00
commit 2ac7e6a8ab
2 files changed
+2 -9

No files matched your search

+2 -1
View File
@@ -45,7 +45,7 @@ function newAppLoader() {
'StrategySpace/Workspace/FunctionLibraries/NodeDeleter.js',
'StrategySpace/Workspace/FunctionLibraries/ProtocolNode.js',
'StrategySpace/Workspace/FunctionLibraries/StringifyNode.js',
'Utilities/RoundedCornersBackground.js',
@@ -195,6 +195,7 @@ function newAppLoader() {
profilePicture
repo
configFile
cloneId
products{
codeName
displayName
-8
View File
@@ -36,7 +36,6 @@ let isHttpServerStarted = false
const FILE_CLOUD = require('./Server/FileCloud')
let fileCloud = FILE_CLOUD.newFileCloud()
let storageData = new Map()
startHtttpServer()
@@ -379,12 +378,6 @@ function respondWithSourceCode (requestParameters, response) {
let filePath = devTeam + '/plotters/' + codeName + '/' + moduleName
let cachedSourceCode = storageData.get(filePath)
if (cachedSourceCode) {
respondWithContent(cachedSourceCode, response)
return
}
fileCloud.getBlobToText(devTeam.toLowerCase(), filePath, null, onDataArrived)
function onDataArrived (err, pData) {
@@ -392,7 +385,6 @@ function respondWithSourceCode (requestParameters, response) {
console.log('[ERROR] server -> onBrowserRequest -> respondWithSourceCode -> Could not read a file -> err.message = ' + err.message, err.stack)
pData = ''
}
storageData.set(filePath, pData)
respondWithContent(pData, response)
}
}