Changed key-checking to value-checking
This includes e.g. gettings, originally not included in keys
This commit is contained in:
parent
873f00b21b
commit
2646c9787e
@ -37,7 +37,7 @@ class PacketInfluxPointFactory extends Transform{
|
||||
_transform(packet, encoding, next){
|
||||
// Create measurements
|
||||
MEASUREMENT_MAP.forEach((objKey, measurement) => {
|
||||
if(!Object.keys(packet).includes(objKey)) return;
|
||||
if(packet[objKey] == null) return;
|
||||
|
||||
let point = new Point(measurement); // Create point
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user