fix incoherance between option and variable name

This commit is contained in:
Damien-Ar 2023-02-14 11:46:46 +01:00
parent 167e9f910c
commit 23a600eb51
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}