SESSION.folderName implemented

This commit is contained in:
Luis Fernando Molina committed 2019-10-17 10:20:48 +02:00
1 parent b3d5c293f5
commit dba159af7a
5 files changed
+28 -10

No files matched your search

+1 -5
View File
@@ -69,11 +69,7 @@ exports.newDebugLog = function newDebugLog() {
let filePath = thisObject.bot.filePathRoot + "/Logs/" + thisObject.bot.process + "/"
if (thisObject.bot.SESSION !== undefined) {
if (thisObject.bot.SESSION.code.folderName === undefined) {
filePath = filePath + thisObject.bot.SESSION.id + "/" + executionDatetime;
} else {
filePath = filePath + thisObject.bot.SESSION.code.folderName + "/" + executionDatetime;
}
filePath = filePath + thisObject.bot.SESSION.folderName + "/" + executionDatetime;
} else {
filePath = filePath + executionDatetime;
}