Showing
1 changed file
with
2 additions
and
1 deletions
@@ -269,7 +269,6 @@ | @@ -269,7 +269,6 @@ | ||
269 | const type = Reflect.get(record, 'type'); | 269 | const type = Reflect.get(record, 'type'); |
270 | const configuration = Reflect.get(record, 'configuration'); | 270 | const configuration = Reflect.get(record, 'configuration'); |
271 | const clientProperties = Reflect.get(configuration, 'clientProperties'); | 271 | const clientProperties = Reflect.get(configuration, 'clientProperties'); |
272 | - console.log(clientProperties); | ||
273 | !clientProperties && (record.configuration.clientProperties = {}); | 272 | !clientProperties && (record.configuration.clientProperties = {}); |
274 | 273 | ||
275 | if ( | 274 | if ( |
@@ -281,7 +280,9 @@ | @@ -281,7 +280,9 @@ | ||
281 | } | 280 | } |
282 | 281 | ||
283 | if (type === 'org.thingsboard.rule.engine.kafka.TbKafkaNode') { | 282 | if (type === 'org.thingsboard.rule.engine.kafka.TbKafkaNode') { |
283 | + const otherProperties = Reflect.get(configuration, 'otherProperties'); | ||
284 | configuration.kafkaHeadersCharset = 'UTF-8'; | 284 | configuration.kafkaHeadersCharset = 'UTF-8'; |
285 | + !otherProperties && (record.configuration.otherProperties = {}); | ||
285 | } | 286 | } |
286 | 287 | ||
287 | if (type === 'org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNode') { | 288 | if (type === 'org.thingsboard.rule.engine.rabbitmq.TbRabbitMqNode') { |