fix incoherance between option and variable name
This commit is contained in:
parent
167e9f910c
commit
23a600eb51
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue