Extradata on execution history
This commit is contained in:
1 parent
13a84f1d17
commit
1a1301af87
2 files changed
+12
-3
No files matched your search
+7
-1
@@ -30,7 +30,8 @@
|
||||
rememberThis: rememberThis,
|
||||
remindMeOf: remindMeOf,
|
||||
truncDecimals: truncDecimals,
|
||||
sendEmail: sendEmail
|
||||
sendEmail: sendEmail,
|
||||
addExtraData: addExtraData
|
||||
};
|
||||
|
||||
let utilities = UTILITIES.newCloudUtilities(bot, logger);
|
||||
@@ -1363,6 +1364,11 @@
|
||||
return;
|
||||
}
|
||||
|
||||
function addExtraData(pExtraDataArray) {
|
||||
|
||||
context.extraData = pExtraDataArray;
|
||||
}
|
||||
|
||||
function truncDecimals(pFloatValue, pDecimals) {
|
||||
|
||||
if (!pDecimals) pDecimals = 8; // Default value
|
||||
|
||||
+5
-2
@@ -45,7 +45,8 @@
|
||||
messageBody: ""
|
||||
},
|
||||
initialize: initialize,
|
||||
saveThemAll: saveThemAll
|
||||
saveThemAll: saveThemAll,
|
||||
extraData: []
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -492,7 +493,9 @@
|
||||
thisObject.newHistoryRecord.messageBody
|
||||
];
|
||||
|
||||
thisObject.executionHistory.push(newRecord);
|
||||
let recordWithExtraData = newRecord.concat(thisObject.extraData);
|
||||
|
||||
thisObject.executionHistory.push(recordWithExtraData);
|
||||
|
||||
let fileContent = JSON.stringify(thisObject.executionHistory);
|
||||
|
||||
|
||||
Reference in new issue
Block a user