From 23a600eb5166c5fe99b1ef78c9107a2a16062351 Mon Sep 17 00:00:00 2001 From: Damien-Ar Date: Tue, 14 Feb 2023 11:46:46 +0100 Subject: [PATCH] fix incoherance between option and variable name --- lib/plugins/influxdb/senderV2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }