diff --git a/lib/plugins/influxdb/senderV2.js b/lib/plugins/influxdb/senderV2.js index 6cc0834c3..fe49a24e0 100644 --- a/lib/plugins/influxdb/senderV2.js +++ b/lib/plugins/influxdb/senderV2.js @@ -3,11 +3,11 @@ const { InfluxDB, Point, HttpError } = require('@influxdata/influxdb-client'); class InfluxDB2Sender { - constructor({ protocol, host, port, database, org, token }) { + constructor({ protocol, host, port, database, organisation, token }) { this.client = new InfluxDB({ url: `${protocol}://${host}:${port}`, token - }).getWriteApi(org, database); + }).getWriteApi(organisation, database); this.database = database; }