Skip to content

Commit

Permalink
Merge pull request #595 from metrico/fix/594-value
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
akvlad authored Oct 29, 2024
2 parents ab7860e + 97e136e commit 15e3dc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/handlers/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
])
Expand All @@ -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
])
Expand Down
2 changes: 1 addition & 1 deletion test/e2e
Submodule e2e updated from e016d1 to 55c595

0 comments on commit 15e3dc0

Please sign in to comment.