Fixed Object.assign

f_influx-checks
Ruakij 3 years ago
parent b32b5cbed7
commit 66c0fdfe12

@ -101,7 +101,7 @@ class PacketStreamFactory extends Transform{
newPacket.disassociationReason = data.match(/(?<=(^|\s)Disassociation:\s).*?(?=\sBSS|$)/img)?.[0] ?? null; newPacket.disassociationReason = data.match(/(?<=(^|\s)Disassociation:\s).*?(?=\sBSS|$)/img)?.[0] ?? null;
break; break;
} }
if(newPacket) packet = Object.assign(new newPacket, packet); // Use new, more specific, packet and copy old data over if(newPacket) packet = Object.assign(newPacket, packet); // Use new, more specific, packet and copy old data over
} }
_handlePayload(packet, data){ _handlePayload(packet, data){

Loading…
Cancel
Save