Fixed stram not being in object-mode

This commit is contained in:
Ruakij 2021-11-26 17:33:19 +01:00
parent 3af4bb7cc6
commit 44cd3288cf

View File

@ -13,6 +13,10 @@ class InfluxPointWriter extends Writable{
* @param {string} bucket Bucket to use
* @param {Partial<WriteOptions>} options Options for WriteApi
*/
constructor(influxDb, org, bucket, options){
super({
objectMode: true
});
this._api = influxDb.getWriteApi(org, bucket, 'us', options);
}