diff --git a/lib/handlers/push.js b/lib/handlers/push.js index 8437c9f9..bc5ea0b7 100644 --- a/lib/handlers/push.js +++ b/lib/handlers/push.js @@ -71,7 +71,7 @@ function processStream (stream, labels, bulkLabels, bulk, toJSON, fingerPrint) { values.push([ finger, ts, - (typeof entry.value === 'undefined') ? null : entry.value, + (typeof entry.value !== 'number') ? 0 : entry.value, entry.line || '', type === 3 ? bothType : type ]) @@ -98,7 +98,7 @@ function processStream (stream, labels, bulkLabels, bulk, toJSON, fingerPrint) { values.push([ finger, BigInt(value[0]), - (typeof value[2] === 'undefined') ? null : value[2], + (typeof value[2] !== 'number') ? 0 : value[2], value[1] || '', type === 3 ? bothType : type ])