Update TradingRecords.js

This commit is contained in:
Luis Fernando Molina committed 2020-08-04 20:05:04 +02:00
1 parent 0c4ef8338d
commit 269524a358
1 file changed
+5 -1
+5 -1
View File
@@ -151,7 +151,11 @@ exports.newTradingRecords = function newTradingRecords(bot, logger) {
we use the Index value we find at the configuration of the Record Property.
*/
if (recordProperty.config.index !== undefined) {
targetNode = targetNode[recordProperty.config.index]
try {
targetNode = targetNode[recordProperty.config.index]
} catch (err) {
badDefinitionUnhandledException(err, 'Error setting Target Node.', product, recordProperty)
}
}
/*
By Default the value is extracted from the value property of the Target Node.