Bots from its own place

This commit is contained in:
Luis Fernando Molina committed 2019-08-12 14:04:37 +02:00
1 parent cc9ba1d9fc
commit 51d73ff278
1 file changed
+8 -1
+8 -1
View File
@@ -51,8 +51,15 @@ exports.newFileStorage = function newFileStorage() {
let host = await getDevTeamHost(container)
if (host.url.indexOf('localhost') !== -1) {
let fileLocation = process.env.STORAGE_PATH + '/' + container + '/' + filePath
let fileLocation
if (filePath.indexOf("/bots/") > 0) {
fileLocation = process.env.BOTS_PATH + '/' + container + '/' + filePath
} else {
fileLocation = process.env.STORAGE_PATH + '/' + container + '/' + filePath
}
logInfo('getTextFile: ' + fileLocation)
let fileContent = await readFileAsync(fileLocation)