This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new f34627d Camel-InfluxDB: Use getMessage where it makes sense f34627d is described below commit f34627d72edca09e1a02a7806530a96d1874a03a Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Sep 13 15:07:28 2021 +0200 Camel-InfluxDB: Use getMessage where it makes sense --- .../java/org/apache/camel/component/influxdb/InfluxDbProducer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java b/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java index 1900a84..ef0c1cf 100644 --- a/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java +++ b/components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbProducer.java @@ -98,13 +98,13 @@ public class InfluxDbProducer extends DefaultProducer { Query influxdbQuery = new Query(query, dataBaseName); QueryResult resultSet = connection.query(influxdbQuery); MessageHelper.copyHeaders(exchange.getIn(), exchange.getOut(), true); - exchange.getOut().setBody(resultSet); + exchange.getMessage().setBody(resultSet); } private void doPing(Exchange exchange) { Pong result = connection.ping(); MessageHelper.copyHeaders(exchange.getIn(), exchange.getOut(), true); - exchange.getOut().setBody(result); + exchange.getMessage().setBody(result); } private String calculateRetentionPolicy(Exchange exchange) {