Fixed stram not being in object-mode
This commit is contained in:
parent
3af4bb7cc6
commit
44cd3288cf
@ -13,6 +13,10 @@ class InfluxPointWriter extends Writable{
|
|||||||
* @param {string} bucket Bucket to use
|
* @param {string} bucket Bucket to use
|
||||||
* @param {Partial<WriteOptions>} options Options for WriteApi
|
* @param {Partial<WriteOptions>} options Options for WriteApi
|
||||||
*/
|
*/
|
||||||
|
constructor(influxDb, org, bucket, options){
|
||||||
|
super({
|
||||||
|
objectMode: true
|
||||||
|
});
|
||||||
this._api = influxDb.getWriteApi(org, bucket, 'us', options);
|
this._api = influxDb.getWriteApi(org, bucket, 'us', options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user