Skip to content

Commit 15e3dc0

Browse files
authored
Merge pull request metrico#595 from metrico/fix/594-value
fix
2 parents ab7860e + 97e136e commit 15e3dc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/handlers/push.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function processStream (stream, labels, bulkLabels, bulk, toJSON, fingerPrint) {
7171
values.push([
7272
finger,
7373
ts,
74-
(typeof entry.value === 'undefined') ? null : entry.value,
74+
(typeof entry.value !== 'number') ? 0 : entry.value,
7575
entry.line || '',
7676
type === 3 ? bothType : type
7777
])
@@ -98,7 +98,7 @@ function processStream (stream, labels, bulkLabels, bulk, toJSON, fingerPrint) {
9898
values.push([
9999
finger,
100100
BigInt(value[0]),
101-
(typeof value[2] === 'undefined') ? null : value[2],
101+
(typeof value[2] !== 'number') ? 0 : value[2],
102102
value[1] || '',
103103
type === 3 ? bothType : type
104104
])

test/e2e

Submodule e2e updated from e016d11 to 55c595d

0 commit comments

Comments
 (0)