From 56356503df5a56f96c0c2b72f9bb2d7f757314ce Mon Sep 17 00:00:00 2001 From: akvlad Date: Tue, 29 Oct 2024 18:54:05 +0200 Subject: [PATCH 1/2] fix value:0 --- lib/handlers/push.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]) From 97e136ef21a7b4cc78a253aec10f5949a5efd9b0 Mon Sep 17 00:00:00 2001 From: akvlad Date: Tue, 29 Oct 2024 19:36:28 +0200 Subject: [PATCH 2/2] sleep --- test/e2e | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e b/test/e2e index e016d11a..55c595d3 160000 --- a/test/e2e +++ b/test/e2e @@ -1 +1 @@ -Subproject commit e016d11ae4a9e66135b4940402d73d87ad1401ea +Subproject commit 55c595d3f847e979c8f29bea9b3c9625a0602121