logs removed

This commit is contained in:
Luis Fernando Molina committed 2021-06-09 13:57:09 +02:00
1 parent 862e3e3e86
commit e75c45293d
2 files changed
+5 -4

No files matched your search

-3
View File
@@ -1818,10 +1818,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
let pathAndNames = []
for (let i = 0; i < files.length; i++) {
let file = files[i]
console.log('file', file)
console.log('lastFolder', lastFolder)
let pathName = file.substring(file.indexOf(lastFolder) + lastFolder.length, file.length)
console.log('pathName', pathName)
pathName = pathName.substring(1, pathName.length)
pathAndNames.push(pathName)
}
@@ -15,7 +15,7 @@ function newGovernanceFunctionLibraryAssets() {
node.payload.uiObject.setErrorMessage("folderPath Config Property undefined.")
return
}
node.payload.uiObject.setInfoMessage("Hold on while we install all the assets inside the this path: " + folderPath + ". This might take a minute or two.")
httpRequest(undefined, 'DirContent' + '/' + folderPath, onResponse)
function onResponse(err, data) {
@@ -24,11 +24,15 @@ function newGovernanceFunctionLibraryAssets() {
return
}
let filePathArray = JSON.parse(data)
let totalAssets = 0
for (let i = 0; i < filePathArray.length; i++) {
let filePath = filePathArray[i]
if (filePath.indexOf('node_modules') >= 0) { continue }
let foldersArray = removeFirstFromArray(filePath.split('\\'))
totalAssets++
createNodesFromPath(node, foldersArray)
}
node.payload.uiObject.setInfoMessage("A total of : " + totalAssets + " assets have been installed.")
}
function removeFirstFromArray(array) {