Bug Fixed and ,ENV removed

This commit is contained in:
Luis Fernando Molina committed 2020-11-29 20:26:45 +01:00
1 parent b344f1fed9
commit eb04de1781
17 files changed
+122 -170

No files matched your search

+6 -6
View File
@@ -74,10 +74,10 @@ exports.newFileStorage = function newFileStorage(logger, host, port) {
let fileLocation
let mustBeJason
if (filePath.indexOf("/bots/") > 0) {
fileLocation = global.env.PROJECTS_PATH + '/' + filePath
fileLocation = global.env.PATH_TO_PROJECTS + '/' + filePath
mustBeJason = false
} else {
fileLocation = global.env.STORAGE_PATH + '/' + filePath
fileLocation = global.env.PATH_TO_DATA_STORAGE + '/' + filePath
mustBeJason = true
}
@@ -234,9 +234,9 @@ exports.newFileStorage = function newFileStorage(logger, host, port) {
/* Choose path for either logs or data */
let fileLocation
if (filePath.indexOf("/Logs/") > 0) {
fileLocation = global.env.LOG_PATH + '/' + filePath
fileLocation = global.env.PATH_TO_LOG_FILES + '/' + filePath
} else {
fileLocation = global.env.STORAGE_PATH + '/' + filePath
fileLocation = global.env.PATH_TO_DATA_STORAGE + '/' + filePath
}
try {
@@ -391,9 +391,9 @@ exports.newFileStorage = function newFileStorage(logger, host, port) {
/* Choose path for either logs or data */
let fileLocation
if (filePath.indexOf("/Logs/") > 0) {
fileLocation = global.env.LOG_PATH + '/' + filePath
fileLocation = global.env.PATH_TO_LOG_FILES + '/' + filePath
} else {
fileLocation = global.env.STORAGE_PATH + '/' + filePath
fileLocation = global.env.PATH_TO_DATA_STORAGE + '/' + filePath
}
try {